diff options
| author | adikro <adikro@disroot.org> | 2026-04-01 21:38:49 +0200 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-04-01 21:38:49 +0200 |
| commit | b1e0a67ef30d0e6e957045bf254aa8f397d467d1 (patch) | |
| tree | 6eab6d25e4dfea49717063c7094ef0c8cf09c6be /os/core/drivers.nix | |
| parent | 6e2d32bec6a82c9fa3cb1d9238fd86196f67702c (diff) | |
thinkpad sync
Diffstat (limited to 'os/core/drivers.nix')
| -rw-r--r-- | os/core/drivers.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/os/core/drivers.nix b/os/core/drivers.nix index 4198bf5..9b373db 100644 --- a/os/core/drivers.nix +++ b/os/core/drivers.nix @@ -2,12 +2,14 @@ config, lib, pkgs, + inputs, ... }: let cfg = config.os.core.drivers; in { + imports = [ inputs.nix-gaming-edge.nixosModules.default ]; options.os.core.drivers = { enable = lib.mkEnableOption "enables hardware drivers"; @@ -23,6 +25,14 @@ in graphics = { enable = lib.mkEnableOption "graphics support"; + version = lib.mkOption { + type = lib.types.enum [ + "stable" + "git" + ]; + default = "stable"; + description = "Which Mesa version to use. 'git' uses the mesa-git overlay."; + }; amdgpu.enable = lib.mkEnableOption "amd specific gpu features"; }; @@ -76,6 +86,14 @@ in rocmPackages.clr.icd ]; }) + (lib.mkIf (cfg.graphics.enable && cfg.graphics.version == "git") { + nixpkgs.overlays = [ inputs.nix-gaming-edge.overlays.mesa-git ]; + drivers.mesa-git = { + enable = true; + # cacheCleanup.enable = true; + # steamOrphanCleanup.enable = true; + }; + }) { boot.kernelPackages = let |
