summaryrefslogtreecommitdiffstats
path: root/modules/by-name/ni/nix/module.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-06 19:00:07 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-06 19:00:59 +0100
commit2da934cf5fafbac67e9cff15a7936ebf589c43c6 (patch)
tree3dbc04e783e59e1ab9cc1eabc2ec0f158713c431 /modules/by-name/ni/nix/module.nix
parentmodules/rofi: Change configured terminal to foot (diff)
downloadnixos-config-2da934cf5fafbac67e9cff15a7936ebf589c43c6.zip
modules/nix: Make the nix wrapper actually work
Diffstat (limited to '')
-rw-r--r--modules/by-name/ni/nix/module.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/by-name/ni/nix/module.nix b/modules/by-name/ni/nix/module.nix
index 31977d4c..391f38e5 100644
--- a/modules/by-name/ni/nix/module.nix
+++ b/modules/by-name/ni/nix/module.nix
@@ -24,10 +24,9 @@
pkgs.lixPackageSets.latest.lix;
nixWrapperBase = pkgs.writeShellApplication {
- inherit (lix) name;
+ name = "nix";
text = builtins.readFile ./nix_wrapper.sh;
- inheritPath = false;
runtimeInputs = [
pkgs.lixPackageSets.latest.lix
pkgs.libnotify
@@ -38,6 +37,9 @@
pkgs.bc
];
+ # the wrapped nix command might call random other stuff.
+ inheritPath = true;
+
derivationArgs = {
inherit (lix) meta pname version;
};