summaryrefslogtreecommitdiff
path: root/os/core
diff options
context:
space:
mode:
Diffstat (limited to 'os/core')
-rw-r--r--os/core/drivers.nix18
-rw-r--r--os/core/security.nix1
2 files changed, 18 insertions, 1 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
diff --git a/os/core/security.nix b/os/core/security.nix
index 34e2f1f..afd6297 100644
--- a/os/core/security.nix
+++ b/os/core/security.nix
@@ -100,7 +100,6 @@ in
environment.systemPackages = with pkgs; [
veracrypt
- bitwarden-desktop
keepassxc
];
}