nixos: add nix package to activation script path

Fixes #2178
This commit is contained in:
Robert Helgesson
2021-07-19 23:07:02 +02:00
parent 41101d0e62
commit ddeeb031fd
2 changed files with 25 additions and 9 deletions

View File

@@ -32,6 +32,10 @@ let
home.username = config.users.users.${name}.name;
home.homeDirectory = config.users.users.${name}.home;
# Make activation script use same version of Nix as system as a whole.
# This avoids problems with Nix not being in PATH.
home.extraActivationPath = [ config.nix.package ];
};
})
] ++ cfg.sharedModules;