diff options
| author | adikro <adikro@disroot.org> | 2025-12-29 23:50:05 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-29 23:50:05 +0100 |
| commit | 05ae56295ae0d7bf99d9580ef5ff1f209259733a (patch) | |
| tree | b8eefbd8d0315d51b53b24889dfdd6c6e3093a29 /os/core/drivers.nix | |
| parent | bd0047d2c4826214bcedf4c1a57d010bb407034d (diff) | |
added GLSL shaders and some shit i dont understand to mpv
Diffstat (limited to 'os/core/drivers.nix')
| -rw-r--r-- | os/core/drivers.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/os/core/drivers.nix b/os/core/drivers.nix index 21e726c..32a848e 100644 --- a/os/core/drivers.nix +++ b/os/core/drivers.nix @@ -5,7 +5,7 @@ in { options.os.core.drivers = { enable = lib.mkEnableOption "enables hardware drivers"; - amd.enable = lib.mkEnableOption "AMD specific drivers and microcode"; + amdgpu.enable = lib.mkEnableOption "AMD specific drivers and microcode"; stability = lib.mkOption { type = lib.types.enum [ "stable" "unstable" ]; default = "stable"; @@ -23,7 +23,7 @@ in }; } - (lib.mkIf cfg.amd.enable { + (lib.mkIf cfg.amdgpu.enable { services.xserver.videoDrivers = [ "amdgpu" ]; hardware.amdgpu = { initrd.enable = true; @@ -31,16 +31,17 @@ in }; }) - (lib.mkIf (cfg.amd.enable && cfg.stability == "unstable") { + (lib.mkIf (cfg.amdgpu.enable && cfg.stability == "unstable") { services.lact.enable = true; - boot.kernelPackages = pkgs.linuxPackages_cachyos-lto-znver4; + # boot.kernelPackages = pkgs.linuxPackages_cachyos-lto-znver4; + boot.kernelPackages = pkgs.linuxPackages_latest; chaotic.mesa-git = { enable = true; extraPackages = [ pkgs.mesa_git.opencl ]; }; }) - (lib.mkIf (cfg.amd.enable && cfg.stability == "stable") { + (lib.mkIf (cfg.amdgpu.enable && cfg.stability == "stable") { boot.kernelPackages = pkgs.linuxPackages_latest; }) ]); |
