targets/generic-linux: use the correct nix package
This commit is contained in:
parent
824202b4c4
commit
183a62f356
|
@ -8,6 +8,8 @@ let
|
|||
|
||||
profileDirectory = config.home.profileDirectory;
|
||||
|
||||
nixPkg = if config.nix.package == null then pkgs.nix else config.nix.package;
|
||||
|
||||
in {
|
||||
imports = [
|
||||
(mkRenamedOptionModule [ "targets" "genericLinux" "extraXdgDataDirs" ] [
|
||||
|
@ -55,7 +57,7 @@ in {
|
|||
};
|
||||
|
||||
home.sessionVariablesExtra = ''
|
||||
. "${pkgs.nix}/etc/profile.d/nix.sh"
|
||||
. "${nixPkg}/etc/profile.d/nix.sh"
|
||||
|
||||
# reset TERM with new TERMINFO available (if any)
|
||||
export TERM="$TERM"
|
||||
|
@ -64,7 +66,7 @@ in {
|
|||
# We need to source both nix.sh and hm-session-vars.sh as noted in
|
||||
# https://github.com/nix-community/home-manager/pull/797#issuecomment-544783247
|
||||
programs.bash.initExtra = ''
|
||||
. "${pkgs.nix}/etc/profile.d/nix.sh"
|
||||
. "${nixPkg}/etc/profile.d/nix.sh"
|
||||
. "${profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue