stockholm/tv/2configs/hw/winmax2.nix

51 lines
1.0 KiB
Nix
Raw Normal View History

2023-01-11 18:50:44 +00:00
{ pkgs, ... }: {
2023-01-26 13:39:47 +00:00
imports = [
../smartd.nix
];
2023-01-11 18:50:44 +00:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" ];
boot.initrd.kernelModules = [ "amdgpu" ];
2023-01-30 15:59:45 +00:00
boot.kernelModules = [
"amd-pstate"
"kvm-amd"
];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [
"amd_pstate=passive"
];
2023-01-11 18:50:44 +00:00
2023-01-26 13:40:04 +00:00
hardware.bluetooth.enable = true;
2023-01-11 18:50:44 +00:00
hardware.cpu.amd.updateMicrocode = true;
hardware.enableRedistributableFirmware = true;
hardware.opengl.enable = true;
hardware.opengl.extraPackages = [
2023-01-18 21:33:02 +00:00
pkgs.amdvlk
pkgs.rocm-opencl-icd
pkgs.rocm-opencl-runtime
2023-01-11 18:50:44 +00:00
];
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;
services.logind.extraConfig = /* ini */ ''
HandlePowerKey=ignore
'';
2023-01-11 18:50:44 +00:00
tv.lidControl.enable = true;
tv.hw.screens.primary.width = 2560;
tv.hw.screens.primary.height = 1600;
}