From 678e235ef003405f919a84f818b0c9fd05350b2d Mon Sep 17 00:00:00 2001 From: NullBite Date: Thu, 12 Dec 2024 20:33:35 -0500 Subject: [PATCH] system: add central lts kernel option --- hosts/nullbox/configuration.nix | 3 +-- hosts/rpi4/configuration.nix | 3 +-- system/default.nix | 7 +++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/hosts/nullbox/configuration.nix b/hosts/nullbox/configuration.nix index 8512bdc..999dade 100644 --- a/hosts/nullbox/configuration.nix +++ b/hosts/nullbox/configuration.nix @@ -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"; diff --git a/hosts/rpi4/configuration.nix b/hosts/rpi4/configuration.nix index 52dcaa3..8afb12f 100644 --- a/hosts/rpi4/configuration.nix +++ b/hosts/rpi4/configuration.nix @@ -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; diff --git a/system/default.nix b/system/default.nix index c36974c..c9f7ece 100644 --- a/system/default.nix +++ b/system/default.nix @@ -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; + }; }; }