From 259d73fb0f4dcdec80701c55148b4cd24d14d4cc Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 3 Apr 2026 23:06:11 +0300 Subject: [PATCH] !fix: try to fix evaluation warning: kirill profile: You have set either `nixpkgs.config` or `nixpkgs.overlays` while using `home-manager.useGlobalPkgs`. This will soon not be possible. Please remove all `nixpkgs` options when using `home-manager.useGlobalPkgs`. --- flake.nix | 5 ++++- host/modules/packages.nix | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 478e699..5e3487f 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,10 @@ pkgs-stable = import nixpkgs-stable { inherit system config; }; pkgs-pinned = import nixpkgs-pinned { inherit system config; }; }; - modules = [ ./host/${hostname}/configuration.nix ]; + modules = [ + ./host/${hostname}/configuration.nix + { nixpkgs.config = config; } + ]; }; in { nixosConfigurations = { diff --git a/host/modules/packages.nix b/host/modules/packages.nix index 5dfd68a..c1deb60 100644 --- a/host/modules/packages.nix +++ b/host/modules/packages.nix @@ -1,5 +1,4 @@ { pkgs, inputs, ... }: { - nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ file