Compare commits
2 Commits
381448b338
...
331651bf23
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
331651bf23
|
||
|
|
b16871c701
|
@@ -29,8 +29,8 @@
|
|||||||
me.mountPersistence = true;
|
me.mountPersistence = true;
|
||||||
|
|
||||||
# Toggle to start writing the extlinux config which will be used by zfsbootmenu
|
# Toggle to start writing the extlinux config which will be used by zfsbootmenu
|
||||||
# boot.loader.generic-extlinux-compatible.enable = true;
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
# boot.loader.systemd-boot.enable = lib.mkForce false;
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||||
|
|
||||||
me.optimizations = {
|
me.optimizations = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -62,14 +62,11 @@
|
|||||||
before = [
|
before = [
|
||||||
"sysroot.mount"
|
"sysroot.mount"
|
||||||
];
|
];
|
||||||
path = with pkgs; [
|
|
||||||
zfs
|
|
||||||
];
|
|
||||||
unitConfig.DefaultDependencies = "no";
|
unitConfig.DefaultDependencies = "no";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = ''
|
script = ''
|
||||||
zfs rollback -r zroot/linux/nix/root@blank
|
${config.boot.zfs.package}/sbin/zfs rollback -r zroot/linux/nix/root@blank
|
||||||
zfs rollback -r zroot/linux/nix/home@blank
|
${config.boot.zfs.package}/sbin/zfs rollback -r zroot/linux/nix/home@blank
|
||||||
echo "rollback complete"
|
echo "rollback complete"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user