From 83afadfe786102c13c1356f4f8b2e63fd4ef5038 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 17 Feb 2024 14:52:43 -0500 Subject: [PATCH] feat(hw): change systemd-boot settings and ryzen stuff --- devices/binto/hardware-configuration.nix | 13 ++++++++++++- devices/cluster/hardware-configuration.nix | 8 ++++++-- devices/servivi/hardware-configuration.nix | 16 +++++++++++++--- devices/wim/hardware-configuration.nix | 1 + 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/devices/binto/hardware-configuration.nix b/devices/binto/hardware-configuration.nix index 3f630291..ae15f699 100644 --- a/devices/binto/hardware-configuration.nix +++ b/devices/binto/hardware-configuration.nix @@ -10,10 +10,16 @@ boot = { kernelPackages = pkgs.linuxPackages_zen; + + kernelParams = ["amd_pstate=active"]; kernelModules = ["kvm-amd"]; + + # Zenpower for ryzen cpu monitoring extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback + zenpower ]; + blacklistedKernelModules = ["k10temp"]; supportedFilesystems = ["ntfs"]; @@ -28,7 +34,12 @@ loader = { efi.canTouchEfiVariables = true; timeout = 2; - systemd-boot.enable = true; + + systemd-boot = { + enable = true; + consoleMode = "max"; + configurationLimit = 30; + }; }; }; diff --git a/devices/cluster/hardware-configuration.nix b/devices/cluster/hardware-configuration.nix index 7d12a4cc..a5b573a3 100644 --- a/devices/cluster/hardware-configuration.nix +++ b/devices/cluster/hardware-configuration.nix @@ -8,10 +8,14 @@ boot = { loader = { + efi.canTouchEfiVariables = true; timeout = 2; - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; + systemd-boot = { + enable = true; + consoleMode = "max"; + configurationLimit = 30; + }; }; initrd.availableKernelModules = [ diff --git a/devices/servivi/hardware-configuration.nix b/devices/servivi/hardware-configuration.nix index 97934b84..64d27156 100644 --- a/devices/servivi/hardware-configuration.nix +++ b/devices/servivi/hardware-configuration.nix @@ -8,9 +8,15 @@ imports = [(modulesPath + "/installer/scan/not-detected.nix")]; boot = { - kernelPackages = pkgs.linuxPackages_latest; + kernelPackages = pkgs.linuxPackages_zen; + kernelParams = ["amd_pstate=active"]; kernelModules = ["kvm-amd"]; + + # Zenpower for ryzen cpu monitoring + extraModulePackages = with config.boot.kernelPackages; [zenpower]; + blacklistedKernelModules = ["k10temp"]; + initrd.availableKernelModules = [ "nvme" "xhci_pci" @@ -21,10 +27,14 @@ ]; loader = { + efi.canTouchEfiVariables = true; timeout = 2; - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; + systemd-boot = { + enable = true; + consoleMode = "max"; + configurationLimit = 30; + }; }; }; diff --git a/devices/wim/hardware-configuration.nix b/devices/wim/hardware-configuration.nix index 1b3ba991..1570a6e8 100644 --- a/devices/wim/hardware-configuration.nix +++ b/devices/wim/hardware-configuration.nix @@ -31,6 +31,7 @@ systemd-boot = { enable = true; + consoleMode = "max"; configurationLimit = 30; }; };