try the new mount

This commit is contained in:
2026-06-14 17:43:50 -05:00
parent bb76bf8779
commit 0682e4a7fd
+17 -20
View File
@@ -128,28 +128,25 @@
}; };
boot.zfs.forceImportRoot = false; boot.zfs.forceImportRoot = false;
/* # Delete root on reboot disable for now while broken
# Delete root on reboot disable for now while broken boot.initrd.systemd.services = {
boot.initrd.systemd.services = { rollback = {
rollback = { description = "Rollback root zfs dataset to blank snapshot";
description = "Rollback root zfs dataset to blank snapshot"; wantedBy = [ "initrd.target" ];
wantedBy = [ "initrd.target" ]; before = [ "sysroot.mount" ];
before = [ "sysroot.mount" ]; after = [ "zfs-import-zroot.service" ];
after = [ "zfs-import-zroot.service" ]; path = with pkgs; [
path = with pkgs; [ zfs
zfs ];
];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
ExecStart = '' ExecStart = ''
zfs rollback -r zroot/root@blank && echo "blank rollback complete" zfs rollback -r zroot/root@blank && echo "blank rollback complete"
''; '';
};
};
}; };
*/ };
};
nix = { nix = {
settings.experimental-features = [ settings.experimental-features = [