1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-13 18:23:39 +02:00

targets/generic-linux: use the correct nix package

This commit is contained in:
David Arnold 2022-10-30 21:19:58 -05:00 committed by Robert Helgesson
parent 824202b4c4
commit 183a62f356
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -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"
'';