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; 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;

View File

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