summaryrefslogtreecommitdiff
path: root/hosts/phosphophyllite/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/phosphophyllite/default.nix')
-rw-r--r--hosts/phosphophyllite/default.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/hosts/phosphophyllite/default.nix b/hosts/phosphophyllite/default.nix
new file mode 100644
index 0000000..0f1f9c1
--- /dev/null
+++ b/hosts/phosphophyllite/default.nix
@@ -0,0 +1,56 @@
+{...}: {
+ imports = [
+ ./hardware-configuration.nix
+ ];
+
+ services.xserver.videoDrivers = [ "nvidia" ];
+
+ hardware.nvidia = {
+ modesetting.enable = true;
+ powerManagement.enable = false;
+ powerManagement.finegrained = false;
+ open = false;
+ nvidiaSettings = true;
+ };
+
+ services.pipewire.wireplumber.extraConfig."10-rename-devices" = {
+ "monitor.alsa.rules" = [
+ {
+ matches = [
+ {
+ "node.name" = "alsa_output.pci-0000_0a_00.4.analog-stereo";
+ }
+ ];
+ actions = {
+ update-props = {
+ "node.description" = "Speakers";
+ };
+ };
+ }
+ {
+ matches = [
+ {
+ "node.name" = "alsa_output.pci-0000_08_00.1.hdmi-stereo";
+ }
+ ];
+ actions = {
+ update-props = {
+ "device.disabled" = true;
+ };
+ };
+ }
+ {
+ matches = [
+ {
+ "node.name" = "alsa_output.usb-HP__Inc_HyperX_Cloud_II_Core_Wireless-00";
+ }
+ ];
+ actions = {
+ update-props = {
+ "node.description" = "HyperX Cloud II";
+ };
+ };
+ }
+ ];
+ };
+}