system: add central lts kernel option

This commit is contained in:
NullBite 2024-12-12 20:33:35 -05:00
parent 229be42595
commit 678e235ef0
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
3 changed files with 9 additions and 4 deletions

View File

@ -89,8 +89,7 @@
};
};
# temporary while i am away from server
boot.kernelPackages = pkgs.linuxPackages_6_6;
boot.kernelPackages = config.nixfiles.ltsKernel;
networking.wg-quick.interfaces.wg0 = {
configFile = "/etc/wireguard/wg0.conf";

View File

@ -33,8 +33,7 @@
configurationLimit = 5;
};
# temporary while i am away from server
boot.kernelPackages = pkgs.linuxPackages_6_6;
boot.kernelPackages = config.nixfiles.ltsKernel;
nixfiles = {
profile.server.enable = true;

View File

@ -64,5 +64,12 @@ in
type = flakeType;
example = "home-manager";
};
ltsKernel = lib.mkOption {
description = "Currently tested LTS kernelPackages, manually update after testing.";
default = pkgs.linuxPackages_6_6;
type = options.boot.kernelPackages.type;
readOnly = true;
};
};
}