about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2023-12-20 09:47:18 +0100
committerJörg Thalheim <joerg@thalheim.io>2023-12-21 09:08:42 +0100
commitfd32059984ff41a2fa43288c481c8fa55c9e536b (patch)
treef5bf148afbe3cdb0405dc1d49f782af9db0423a0 /nixos
parent9ee63abe2cbeea5bf15f319a0a5aaf0919fe22e8 (diff)
nixos/nix-direnv: respect configured nix package
Rebuilds should be reasonably fast since it's a shell script
and we don't end up with different versions of nix in the store.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/programs/direnv.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/programs/direnv.nix b/nixos/modules/programs/direnv.nix
index 1aa62ea54d2c5..fdc646eb4b164 100644
--- a/nixos/modules/programs/direnv.nix
+++ b/nixos/modules/programs/direnv.nix
@@ -49,7 +49,14 @@ in {
           default = true;
         };
 
-      package = lib.mkPackageOption pkgs "nix-direnv" {};
+      package = lib.mkOption {
+        default = pkgs.nix-direnv.override { nix = config.nix.package; };
+        defaultText = "pkgs.nix-direnv";
+        type = lib.types.package;
+        description = lib.mdDoc ''
+          The nix-direnv package to use
+        '';
+      };
     };
   };