Graphics fixes :|

This commit is contained in:
Emmet 2025-10-25 21:54:55 -05:00
parent 68e2da66c8
commit 98b74c560c
8 changed files with 41 additions and 61 deletions

View file

@ -9,7 +9,7 @@ in
enable = lib.mkEnableOption "Enable cachyos kernel";
variant = lib.mkOption {
default = null;
type = lib.types.nullOr (lib.types.enum ["lto" "server" "hardened"]);
type = lib.types.nullOr (lib.types.enum ["lto" "lts" "server" "hardened"]);
description = ''
This option determines the CachyOS kernel variant to use.
'';
@ -20,6 +20,7 @@ in
config = lib.mkIf cfg.enable {
boot.kernelPackages = lib.mkMerge [
(lib.mkIf (cfg.variant == null) pkgs.linuxPackages_cachyos)
(lib.mkIf (cfg.variant == "lts") pkgs.linuxPackages_cachyos-lts)
(lib.mkIf (cfg.variant == "lto") pkgs.linuxPackages_cachyos-lto)
(lib.mkIf (cfg.variant == "server") pkgs.linuxPackages_cachyos-server)
(lib.mkIf (cfg.variant == "hardened") pkgs.linuxPackages_cachyos-hardened)