host/home: use lts to fix wifi module
This commit is contained in:
parent
7e5e665c6f
commit
5ade35b9a9
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue