From bbd454dd95450452e9f1d732b8f2fe039ada9362 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 15 Jul 2023 21:06:17 +0200 Subject: old computer challenge as a specialisation --- nixos/icewm.nix | 1 + nixos/kusanagi.nix | 17 +++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/nixos/icewm.nix b/nixos/icewm.nix index dea6b91..5b00359 100644 --- a/nixos/icewm.nix +++ b/nixos/icewm.nix @@ -10,5 +10,6 @@ netsurf.browser midori sylpheed + xfe ]; } diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix index 3cbbef3..4b75489 100644 --- a/nixos/kusanagi.nix +++ b/nixos/kusanagi.nix @@ -24,11 +24,16 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - # Old computer challenge - boot.kernelParams = [ - "maxcpus=1" - "mem=512M" - ]; + specialisation = { + # Old computer challenge + tiny.configuration = { + boot.kernelParams = [ + "maxcpus=1" + "mem=512M" + ]; + powerManagement.cpuFreqGovernor = "powersave"; + }; + }; boot.initrd.luks.devices = { crypted = { @@ -94,7 +99,7 @@ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + #powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } -- cgit v1.2.3