home: map home persistence to zfs mountpoints
This commit is contained in:
parent
b6897272aa
commit
cca40455c8
1 changed files with 6 additions and 0 deletions
|
@ -124,6 +124,12 @@ in {
|
|||
neededForBoot = true;
|
||||
}) cfg.profiles;
|
||||
|
||||
global.fs.zfs.mountpoints = mapAttrs'
|
||||
(name: opts: nameValuePair
|
||||
"/nix/persist/home/${name}"
|
||||
"home/${name}")
|
||||
(filterAttrs (n: _: n != "root") config.users.profiles);
|
||||
|
||||
home-manager.users = mapAttrs (name: opts: {
|
||||
imports = cfg.homeModules;
|
||||
home.stateVersion = "23.11";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue