Skip to content

Commit

Permalink
chore(modules,systems): nvidia stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Aug 26, 2024
1 parent facaea4 commit 08f8da3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions modules/nixos/nvidia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ in {
default = true;
description = "Whether to enable the beta driver.";
};

enableOpen = mkOption {
type = types.bool;
default = false;
description = "Whether to enable the open driver.";
};
};

config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [nvtopPackages.nvidia];

hardware.nvidia = {
package = mkIf cfg.enableBeta config.boot.kernelPackages.nvidiaPackages.beta;
open = cfg.enableOpen;
modesetting.enable = true;
nvidiaSettings = false;
};
Expand Down
5 changes: 4 additions & 1 deletion systems/dissension/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
workspace = "3";
}
];
nvidia.enable = true;
nvidia = {
enable = true;
enableOpen = true;
};
};
hardware = {
steam-hardware.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion systems/solaris/hardware.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{inputs, ...}: {
imports = with inputs.hardware.nixosModules; [
common-pc-laptop-ssd
common-cpu-intel
common-cpu-intel-cpu-only
common-gpu-nvidia-nonprime
];

Expand Down

0 comments on commit 08f8da3

Please sign in to comment.