diff options
| author | alex <[email protected]> | 2026-10-16 23:58:30 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-10-16 23:58:30 +0200 |
| commit | 30f1b4d92142ed378bac9edb54f438a7f1ba5e0a (patch) | |
| tree | bd3d385899d5453ce504b41051cd963574cf590f /hosts | |
| parent | 14eec8e2b0af7c74a9f5ace426f39a21fa3a84ac (diff) | |
| download | nixos-30f1b4d92142ed378bac9edb54f438a7f1ba5e0a.tar.xz nixos-30f1b4d92142ed378bac9edb54f438a7f1ba5e0a.zip | |
init
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/phosphophyllite/default.nix | 56 | ||||
| -rw-r--r-- | hosts/phosphophyllite/hardware-configuration.nix | 33 |
2 files changed, 89 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"; + }; + }; + } + ]; + }; +} diff --git a/hosts/phosphophyllite/hardware-configuration.nix b/hosts/phosphophyllite/hardware-configuration.nix new file mode 100644 index 0000000..0ce8cdf --- /dev/null +++ b/hosts/phosphophyllite/hardware-configuration.nix @@ -0,0 +1,33 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/95d04e16-97f5-4dda-bd99-eebcfece01f7"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/EE61-21CA"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/a0e6ef0c-6429-466c-964b-67b4656e8027"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
