home-manager: fix directory not found error

Prepend of /. produces directory not found error when building on a non
nix-on-droid environment. The etc module works also with just a string.
This commit is contained in:
Tobias Happ 2022-10-11 18:54:18 +02:00
parent 83ab467992
commit 2ef9a7faa2

View file

@ -127,8 +127,7 @@ in
# https://github.com/nix-community/home-manager/blob/0006da1381b87844c944fe8b925ec864ccf19348/modules/home-environment.nix#L414
# Fortunately, it's not that hard to us to workaround with just a symlink.
environment.etc = mkIf cfg.useUserPackages {
"profiles/per-user/${config.user.userName}".source =
/. + "${config.user.home}/.nix-profile";
"profiles/per-user/${config.user.userName}".source = "${config.user.home}/.nix-profile";
};
};