diff options
| author | Fuwn <[email protected]> | 2024-08-28 20:36:04 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-08-28 20:36:04 -0700 |
| commit | f3c31e4ad7fab36e151f3a2e207fafb1eda1a787 (patch) | |
| tree | e265a1a5270b4522049110b8bc5aa13fda142c2f /modules/hardware | |
| parent | many (diff) | |
| download | nixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.tar.xz nixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.zip | |
hi
Diffstat (limited to 'modules/hardware')
| -rw-r--r-- | modules/hardware/bluetooth.nix | 6 | ||||
| -rw-r--r-- | modules/hardware/default.nix | 8 | ||||
| -rw-r--r-- | modules/hardware/graphics.nix | 8 | ||||
| -rw-r--r-- | modules/hardware/nvidia.nix | 17 |
4 files changed, 39 insertions, 0 deletions
diff --git a/modules/hardware/bluetooth.nix b/modules/hardware/bluetooth.nix new file mode 100644 index 0000000..1b6e38b --- /dev/null +++ b/modules/hardware/bluetooth.nix @@ -0,0 +1,6 @@ +{ + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + }; +} diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix new file mode 100644 index 0000000..c22d253 --- /dev/null +++ b/modules/hardware/default.nix @@ -0,0 +1,8 @@ +{ config, pkgs, ... }: +{ + imports = [ + ./bluetooth.nix + ./graphics.nix + ./nvidia.nix + ]; +} diff --git a/modules/hardware/graphics.nix b/modules/hardware/graphics.nix new file mode 100644 index 0000000..ae9d2fc --- /dev/null +++ b/modules/hardware/graphics.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + hardware.graphics = { + enable = true; + enable32Bit = true; + extraPackages = with pkgs; [ nvidia-vaapi-driver ]; + }; +} diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix new file mode 100644 index 0000000..d6c16e2 --- /dev/null +++ b/modules/hardware/nvidia.nix @@ -0,0 +1,17 @@ +{ config, ... }: +{ + hardware.nvidia = { + modesetting.enable = true; + open = false; + nvidiaSettings = true; + package = config.boot.kernelPackages.nvidiaPackages.beta; + forceFullCompositionPipeline = true; + + powerManagement = { + enable = true; + finegrained = false; + }; + + prime.nvidiaBusId = "PCI:43:0:0"; + }; +} |