From dae5ba6c304ecd2fa0c442d635ddddf814881054 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 26 Jan 2023 14:39:47 +0100 Subject: tv winmax2: enable smartd --- tv/2configs/hw/winmax2.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tv/2configs/hw/winmax2.nix') diff --git a/tv/2configs/hw/winmax2.nix b/tv/2configs/hw/winmax2.nix index 0a207f23..a61119a8 100644 --- a/tv/2configs/hw/winmax2.nix +++ b/tv/2configs/hw/winmax2.nix @@ -1,4 +1,9 @@ { pkgs, ... }: { + + imports = [ + ../smartd.nix + ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" ]; boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; -- cgit v1.2.3 From c9da4d8358646425c01dfb82eb0c3e8d7ae3a0d1 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 26 Jan 2023 14:40:04 +0100 Subject: tv winmax2: enable bluetooth --- tv/2configs/hw/winmax2.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tv/2configs/hw/winmax2.nix') diff --git a/tv/2configs/hw/winmax2.nix b/tv/2configs/hw/winmax2.nix index a61119a8..fe4a6e4c 100644 --- a/tv/2configs/hw/winmax2.nix +++ b/tv/2configs/hw/winmax2.nix @@ -8,6 +8,8 @@ boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; + hardware.bluetooth.enable = true; + hardware.cpu.amd.updateMicrocode = true; hardware.enableRedistributableFirmware = true; -- cgit v1.2.3 From 57264b76503386e086cc4bb4d5f138bb2cb94856 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 26 Jan 2023 14:40:40 +0100 Subject: tv winmax2: prevent logind from handling powerkey --- tv/2configs/hw/winmax2.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tv/2configs/hw/winmax2.nix') diff --git a/tv/2configs/hw/winmax2.nix b/tv/2configs/hw/winmax2.nix index fe4a6e4c..b52ab0fa 100644 --- a/tv/2configs/hw/winmax2.nix +++ b/tv/2configs/hw/winmax2.nix @@ -32,6 +32,10 @@ services.illum.enable = true; + services.logind.extraConfig = /* ini */ '' + HandlePowerKey=ignore + ''; + tv.lidControl.enable = true; tv.hw.screens.primary.width = 2560; -- cgit v1.2.3 From a85de9a0deb81f8b8759bfc6a54db0d823ab7a19 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 30 Jan 2023 16:59:45 +0100 Subject: tv winmax2: use amd-pstate --- tv/2configs/hw/winmax2.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tv/2configs/hw/winmax2.nix') diff --git a/tv/2configs/hw/winmax2.nix b/tv/2configs/hw/winmax2.nix index b52ab0fa..49af7611 100644 --- a/tv/2configs/hw/winmax2.nix +++ b/tv/2configs/hw/winmax2.nix @@ -6,7 +6,14 @@ boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" ]; boot.initrd.kernelModules = [ "amdgpu" ]; - boot.kernelModules = [ "kvm-amd" ]; + boot.kernelModules = [ + "amd-pstate" + "kvm-amd" + ]; + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelParams = [ + "amd_pstate=passive" + ]; hardware.bluetooth.enable = true; -- cgit v1.2.3