Switch to using i_only_boot_zfs.

This commit is contained in:
Tom Alexander 2025-11-02 19:44:55 -05:00
parent f27aae960f
commit 57b83f7175
Signed by: talexander
GPG Key ID: 36C99E8B3C39D85F
2 changed files with 16 additions and 3 deletions

View File

@ -26,8 +26,8 @@
me.mountPersistence = true;
# Toggle to start writing the extlinux config which will be used by zfsbootmenu
# boot.loader.generic-extlinux-compatible.enable = true;
# boot.loader.systemd-boot.enable = lib.mkForce false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.loader.systemd-boot.enable = lib.mkForce false;
me.optimizations = {
# enable = true;

View File

@ -17,7 +17,7 @@
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountpoint = "/efi";
mountOptions = [
"umask=0077"
"noatime"
@ -76,6 +76,15 @@
mountpoint = "/";
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot/linux/nix/root@blank$' || zfs snapshot zroot/linux/nix/root@blank";
};
# "linux/nix/boot" = {
# type = "zfs_fs";
# options = {
# mountpoint = "legacy";
# "org.zfsbootmenu:nixos" = "on";
# };
# mountpoint = "/";
# postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot/linux/nix/boot@blank$' || zfs snapshot zroot/linux/nix/boot@blank";
# };
"linux/nix/nix" = {
type = "zfs_fs";
options.mountpoint = "legacy";
@ -120,6 +129,10 @@
"noatime"
"norelatime"
];
# fileSystems."/boot".options = [
# "noatime"
# "norelatime"
# ];
fileSystems."/nix".options = [
"noatime"
"norelatime"