various fixes

This commit is contained in:
Gerg-L 2023-07-18 17:18:24 -04:00
parent c13f56c217
commit 1cfe329423
6 changed files with 50 additions and 44 deletions

View file

@ -21,8 +21,6 @@
};
allowedUnfree = [
"nvidia-x11"
"steam"
"steam-original"
];
};
boot.binfmt.emulatedSystems = ["aarch64-linux"];
@ -42,7 +40,6 @@
loadInNixShell = false;
silent = true;
};
programs.fish.enable = true;
nix.settings.system-features = ["kvm" "big-parallel" "nixos-test" "benchmark"];

View file

@ -90,31 +90,37 @@ in {
type = "zfs_fs";
options.mountpoint = "legacy";
mountpoint = "/";
postCreateHook = "zfs snapshot root@empty";
postCreateHook = ''
zfs snapshot rpool/root@empty
zfs snapshot rpool/root@lastboot
'';
};
"nix" = {
type = "zfs_fs";
options.mountpoint = "legacy";
mountpoint = "/nix";
postCreateHook = "zfs snapshot nix@empty";
postCreateHook = "zfs snapshot rpool/nix@empty";
};
"var" = {
type = "zfs_fs";
options.mountpoint = "legacy";
mountpoint = "/var";
postCreateHook = "zfs snapshot var@empty";
postCreateHook = ''
zfs snapshot rpool/var@empty
zfs snapshot rpool/var@lastboot
'';
};
"persist" = {
type = "zfs_fs";
options.mountpoint = "legacy";
mountpoint = "/persist";
postCreateHook = "zfs snapshot persist@empty";
postCreateHook = "zfs snapshot rpool/persist@empty";
};
"home" = {
type = "zfs_fs";
options.mountpoint = "legacy";
mountpoint = "/home";
postCreateHook = "zfs snapshot home@empty";
postCreateHook = "zfs snapshot rpool/home@empty";
};
};
};
@ -141,7 +147,7 @@ in {
type = "zfs_fs";
options.mountpoint = "legacy";
mountpoint = "/boot";
postCreateHook = "zfs snapshot boot@empty";
postCreateHook = "zfs snapshot bpool/boot@empty";
};
};
};