summaryrefslogtreecommitdiff
path: root/hosts/common/hardware
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-25 20:26:41 -0500
committerseth <[email protected]>2023-01-26 03:49:52 -0500
commit7608b3701bf43502a9d3e5752b5f4cd9643f126b (patch)
tree31e8e43af2effe1a306db6cc3b65171101968698 /hosts/common/hardware
parent7c93704d3d49a7dc3f0067beb80846ca539d392b (diff)
help
Diffstat (limited to 'hosts/common/hardware')
-rw-r--r--hosts/common/hardware/default.nix6
-rw-r--r--hosts/common/hardware/nvidia.nix17
2 files changed, 23 insertions, 0 deletions
diff --git a/hosts/common/hardware/default.nix b/hosts/common/hardware/default.nix
new file mode 100644
index 0000000..e7e6350
--- /dev/null
+++ b/hosts/common/hardware/default.nix
@@ -0,0 +1,6 @@
+_: {
+ imports = [
+ ./nvidia.nix
+ ./zfs.nix
+ ];
+}
diff --git a/hosts/common/hardware/nvidia.nix b/hosts/common/hardware/nvidia.nix
new file mode 100644
index 0000000..4bc445c
--- /dev/null
+++ b/hosts/common/hardware/nvidia.nix
@@ -0,0 +1,17 @@
+{
+ config,
+ pkgs,
+ ...
+}: {
+ hardware = {
+ nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
+ opengl = {
+ enable = true;
+ extraPackages = with pkgs; [
+ vaapiVdpau
+ ];
+ };
+ };
+
+ services.xserver.videoDrivers = ["nvidia"];
+}