host/home: use lts to fix wifi module

This commit is contained in:
Dmitriy Pleshevskiy 2025-02-21 21:46:04 +03:00
parent 7e5e665c6f
commit 5ade35b9a9
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
2 changed files with 7 additions and 1 deletions
hosts/home/hardware-configuration
modules/nixos/configs

View file

@ -11,6 +11,8 @@
# See: https://github.com/NixOS/nixpkgs/issues/38676
boot.kernelModules = [ "veth" ];
# rtl88x2bu doesn't work on stable at the moment 🤔
local.system.kernel = "lts";
boot.extraModulePackages = with config.boot.kernelPackages; [
rtl88x2bu # wifi
];

View file

@ -12,7 +12,7 @@ in
options.local.system = with lib; {
kernel = mkOption {
type = types.enum [ "hardened" "stable" "latest" ];
type = types.enum [ "hardened" "stable" "lts" "latest" ];
default = "latest";
};
headless = mkEnableOption "headless profile";
@ -48,6 +48,10 @@ in
boot.kernelPackages = pkgs.unstable.linuxPackages_6_13;
})
(lib.mkIf (cfg.kernel == "lts") {
boot.kernelPackages = pkgs.unstable.linuxPackages_6_12;
})
(lib.mkIf (cfg.kernel == "latest") {
boot.kernelPackages = pkgs.unstable.linuxPackages_latest;
})