mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
modules/home-manager: link profile to /etc
This commit is contained in:
parent
11a963ec62
commit
7bd0ebcef3
1 changed files with 8 additions and 0 deletions
|
|
@ -122,6 +122,14 @@ in
|
|||
|
||||
environment.packages = mkIf cfg.useUserPackages cfg.config.home.packages;
|
||||
|
||||
# home-manager has a quirk redefining the profile location
|
||||
# to "/etc/profiles/per-user/${cfg.username}" if useUserPackages is on.
|
||||
# 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 =
|
||||
builtins.toPath "${config.user.home}/.nix-profile";
|
||||
};
|
||||
})
|
||||
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue