home: map home persistence to zfs mountpoints

This commit is contained in:
514fpv 2024-01-09 16:48:49 +08:00
parent 07ea3cf9dd
commit c6d51ba65c
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ

View file

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