Enable /boot partition.

This commit is contained in:
Tom Alexander 2025-11-15 20:05:02 -05:00
parent f13689e2c1
commit 09e36de78e
Signed by: talexander
GPG Key ID: 36C99E8B3C39D85F
3 changed files with 22 additions and 19 deletions

View File

@ -26,15 +26,15 @@
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;
arch = "kabylake";
# arch = "kabylake";
# build_arch = "x86-64-v3";
system_features = [
"gccarch-kabylake"
# "gccarch-kabylake"
"gccarch-x86-64-v3"
"benchmark"
"big-parallel"

View File

@ -76,15 +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/boot" = {
type = "zfs_fs";
options = {
mountpoint = "legacy";
"org.zfsbootmenu:nixos" = "on";
};
mountpoint = "/boot";
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";
@ -129,10 +129,10 @@
"noatime"
"norelatime"
];
# fileSystems."/boot".options = [
# "noatime"
# "norelatime"
# ];
fileSystems."/boot".options = [
"noatime"
"norelatime"
];
fileSystems."/nix".options = [
"noatime"
"norelatime"

View File

@ -50,10 +50,13 @@
};
config = lib.mkMerge [
{
boot.zfs.package = pkgs.zfs_unstable;
}
(lib.mkIf (!config.me.optimizations.enable) (
lib.mkMerge [
{
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_6_16;
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_6_17;
}
]
))
@ -92,7 +95,7 @@
HZ = lib.kernel.freeform "300";
HZ_300 = lib.kernel.yes;
HZ_1000 = lib.kernel.no;
} prev.linux_6_16;
} prev.linux_6_17;
}
)
(final: prev: {