From fbd33d19895dac77056af04595c2a22ca7552517 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 6 Jan 2023 21:27:58 +0100 Subject: tv AO753: use nix.settings --- tv/2configs/hw/AO753.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tv/2configs/hw') diff --git a/tv/2configs/hw/AO753.nix b/tv/2configs/hw/AO753.nix index b998fcf7c..f2268a9b2 100644 --- a/tv/2configs/hw/AO753.nix +++ b/tv/2configs/hw/AO753.nix @@ -4,8 +4,8 @@ with import ./lib; ../smartd.nix { - nix.buildCores = 2; - nix.maxJobs = 2; + nix.settings.cores = 2; + nix.settings.max-jobs = 2; } (if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then { nix.daemonCPUSchedPolicy = "batch"; -- cgit v1.2.3 From 99eafa9d79c06219e3e1145bb3434f7d14a57e83 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 11 Jan 2023 19:50:44 +0100 Subject: tv winmax2: init --- tv/2configs/hw/winmax2.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tv/2configs/hw/winmax2.nix (limited to 'tv/2configs/hw') diff --git a/tv/2configs/hw/winmax2.nix b/tv/2configs/hw/winmax2.nix new file mode 100644 index 000000000..bda349e96 --- /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; +} -- cgit v1.2.3 From 23fdaa1eedc330d28eaa0111dba65f33d586824e Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 18 Jan 2023 22:33:02 +0100 Subject: tv winmax2: retab --- tv/2configs/hw/winmax2.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tv/2configs/hw') diff --git a/tv/2configs/hw/winmax2.nix b/tv/2configs/hw/winmax2.nix index bda349e96..0a207f231 100644 --- a/tv/2configs/hw/winmax2.nix +++ b/tv/2configs/hw/winmax2.nix @@ -8,9 +8,9 @@ hardware.opengl.enable = true; hardware.opengl.extraPackages = [ - pkgs.amdvlk - pkgs.rocm-opencl-icd - pkgs.rocm-opencl-runtime + pkgs.amdvlk + pkgs.rocm-opencl-icd + pkgs.rocm-opencl-runtime ]; hardware.video.hidpi.enable = true; -- cgit v1.2.3