summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-07-15 21:06:17 +0200
committerAlex Auvolat <alex@adnab.me>2023-07-15 21:06:17 +0200
commitbbd454dd95450452e9f1d732b8f2fe039ada9362 (patch)
treee68a6a452f0769df723648fd9d98d3af9e05cabc
parent594e15afa88ad1df1b1c4b65c04f420d09d70990 (diff)
downloaduser-config-bbd454dd95450452e9f1d732b8f2fe039ada9362.tar.gz
user-config-bbd454dd95450452e9f1d732b8f2fe039ada9362.zip
old computer challenge as a specialisation
-rw-r--r--nixos/icewm.nix1
-rw-r--r--nixos/kusanagi.nix17
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;
}