about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-02-14 14:22:08 +0100
committerProfpatsch <mail@profpatsch.de>2024-02-14 14:36:28 +0100
commitf25d3afbe9a2dd72e17b1c65ba3b6f9401c6706c (patch)
tree5f14b8fac291af1cfca8aaeff21f72c9e5e9abf3
parentc06402546e04a5d2258e8c56b4f59778c38da81c (diff)
machines/profpatsch: shiki hardware config & stateVersion
-rw-r--r--machines/profpatsch/shiki.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index f554633b..048dd379 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -33,6 +33,15 @@ in {
 
   config = {
 
+    system.stateVersion = "23.11";
+
+    system.autoUpgrade = {
+      enable = true;
+      dates = "18:00";
+      channel = "https://nixos.org/channels/nixos-23.11";
+      allowReboot = false;
+    };
+
     #########
     # Kernel
 
@@ -49,6 +58,8 @@ in {
     boot.extraModprobeConfig = ''
       options v4l2loopback exclusive_caps=1
     '';
+    # make sure /boot does not run out of space
+    boot.loader.systemd-boot.configurationLimit = 20;
 
     ###########
     # Hardware
@@ -65,10 +76,14 @@ in {
       options = ["nofail"];
     };
 
+    zramSwap.enable = true;
+
     hardware.trackpoint = {
       speed = 280;
     };
 
+    powerManagement.cpuFreqGovernor = "powersave";
+
     # hardware.pulseaudio = {
     #   enable = true;
     #   zeroconf.discovery.enable = true;