feat: fixed more missing datasets

This commit is contained in:
Leyla Becker 2026-03-07 14:33:08 -06:00
parent 1145703cfe
commit 2f7bbf3e1c
5 changed files with 65 additions and 4 deletions

View file

@ -409,10 +409,13 @@ in {
);
# Post resume commands to rollback user home datasets to blank snapshots
boot.initrd.postResumeCommands = lib.mkAfter (
# Only add these when generateBase is true -- when false, the legacy
# storage config is responsible for providing rollback commands with
# the correct (old) dataset paths.
boot.initrd.postResumeCommands = lib.mkIf config.storage.generateBase (lib.mkAfter (
lib.strings.concatLines (builtins.map (user: "zfs rollback -r rpool/ephemeral/home/${user.name}@blank")
normalUsers)
);
));
# TODO: I don't think we need this anymore but I have not tested it
# Create persist home directories with proper permissions