From 26bf4e3631a39855448118a6856af4e2d5721f04 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 11 Feb 2023 10:53:52 +0000 Subject: [PATCH] modules: system: nix: preprend to 'NIX_PATH' Instead of appending to the default value. This makes overriding some values that are defined as the default value easier. --- modules/system/nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/nix/default.nix b/modules/system/nix/default.nix index 1203450..2decd78 100644 --- a/modules/system/nix/default.nix +++ b/modules/system/nix/default.nix @@ -35,11 +35,11 @@ in }) (lib.mkIf cfg.addToNixPath { - nix.nixPath = options.nix.nixPath.default ++ [ + nix.nixPath = [ "self=${inputs.self}" "pkgs=${inputs.nixpkgs}" "nur=${inputs.nur}" - ]; + ++ options.nix.nixPath.default; }) ]); }