diff --git a/common/default.nix b/common/default.nix index 7810eed6..f9def960 100644 --- a/common/default.nix +++ b/common/default.nix @@ -112,8 +112,12 @@ } { - programs.bash.sessionVariables = { - FLAKE = config.environment.variables.FLAKE; + programs.bash = { + sessionVariables = rec { + FLAKE = config.environment.variables.FLAKE; + NH_FLAKE = FLAKE; + }; + shellAliases.nh = "env -u FLAKE nh"; }; }