Compare commits

...

5 commits

Author SHA1 Message Date
712cca5909
feat(stolas): use larger swapfile
Some checks are pending
Continuous Integration / Checks (push) Waiting to run
2025-07-27 01:23:13 +02:00
9ec0688652
chore(stolas): remove unused option for combined sleep target 2025-07-27 01:00:17 +02:00
03c6c141ee
feat(stolas): replace zram with zswap 2025-07-27 00:55:31 +02:00
0909933ba9
chore(stolas): cleanup config 2025-07-27 00:29:42 +02:00
618a4b3a73
fix(stolas): suspend from disk and wifi suspend 2025-07-27 00:21:39 +02:00
2 changed files with 9 additions and 23 deletions

View file

@ -23,7 +23,14 @@
pkiBundle = "/var/lib/sbctl";
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ];
# Hopefully fixes suspend issues with wifi card
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [
"resume=UUID=81dfbfa5-d578-479c-b11c-3ee5abd6848a"
"resume_offset=79859524"
"zswap.enabled=1"
];
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
# Lanzaboote currently replaces the systemd-boot module.
# This setting is usually set to true in configuration.nix
# generated at installation time. So we force it to false
@ -65,10 +72,6 @@
powerManagement = {
enable = true;
cpuFreqGovernor = "schedutil";
# TODO: Limit charge of battery, does this work without kernel patches from hardware.frameworkenableKmod?
powerUpCommands = ''
echo 80 > /sys/class/power_supply/BAT0/charge_control_stop_threshold
'';
};
networking = {
@ -174,10 +177,6 @@
"dbus-org.freedesktop.ModemManager1".enable = lib.mkForce false;
};
systemd.sleep.extraConfig = ''
HibernateDelaySec=1h
'';
systemd.tmpfiles.rules = [
"v /var/.snapshots 0755 root root - -"
"v /var/paperless/.snapshots 0755 root root - -"
@ -205,20 +204,7 @@
"wireshark"
"paperless"
];
shell = "/run/current-system/sw/bin/zsh";
};
};
};
# TODO
# age.secrets = {
# paperless = {
# file = "${config.dadada.secrets.path}/paperless.age";
# mode = "700";
# owner = "paperless";
# };
# };
# Create compressing swap space in RAM
zramSwap.enable = true;
}

View file

@ -86,7 +86,7 @@
};
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "64G";
swap.swapfile.size = "128G";
};
};
};