From 54a6be70c836de669ad93e82469fcc5badb3cc8b Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 24 Feb 2023 09:26:06 +0000 Subject: [PATCH] modules: system: nix: simplify 'NIX_PATH' Since we now have an explicit 'pkgs' link, we can just add the folder with all linked inputs directly instead of adding them all manually. --- modules/system/nix/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/system/nix/default.nix b/modules/system/nix/default.nix index 127a20d..056b5da 100644 --- a/modules/system/nix/default.nix +++ b/modules/system/nix/default.nix @@ -73,11 +73,8 @@ in (lib.mkIf cfg.addToNixPath { nix.nixPath = [ - "self=/etc/nix/inputs/self" - "pkgs=/etc/nix/inputs/pkgs" - "nur=/etc/nix/inputs/nur" + "/etc/nix/inputs" ] - ++ lib.optional cfg.overrideNixpkgs "nixpkgs=/etc/nix/inputs/nixpkgs" ++ options.nix.nixPath.default; }) ]);