diff options
author | tv <tv@krebsco.de> | 2023-01-11 19:50:44 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-01-11 20:47:53 +0100 |
commit | 7f24c4a690d7c69716c616565f059067bb23987c (patch) | |
tree | 909590e7e57c6c5bcd8e4138eeb2bbfa72241a75 /tv | |
parent | 6f6cf85808a8fbc6fd0b8c51114224a17e9000d1 (diff) |
tv winmax2: init
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/hw/winmax2.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tv/2configs/hw/winmax2.nix b/tv/2configs/hw/winmax2.nix new file mode 100644 index 0000000..bda349e --- /dev/null +++ b/tv/2configs/hw/winmax2.nix @@ -0,0 +1,32 @@ +{ pkgs, ... }: { + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" ]; + boot.initrd.kernelModules = [ "amdgpu" ]; + boot.kernelModules = [ "kvm-amd" ]; + + hardware.cpu.amd.updateMicrocode = true; + hardware.enableRedistributableFirmware = true; + + hardware.opengl.enable = true; + hardware.opengl.extraPackages = [ + pkgs.amdvlk + pkgs.rocm-opencl-icd + pkgs.rocm-opencl-runtime + ]; + + hardware.video.hidpi.enable = true; + + networking.wireless.enable = true; + networking.wireless.interfaces = [ + "wlp1s0" + ]; + networking.interfaces.wlp1s0.useDHCP = true; + + nixpkgs.hostPlatform = "x86_64-linux"; + + services.illum.enable = true; + + tv.lidControl.enable = true; + + tv.hw.screens.primary.width = 2560; + tv.hw.screens.primary.height = 1600; +} |