feat(callisto): reduce swapfile from 32gb -> 4gb

This commit is contained in:
Youwen Wu 2025-06-01 19:19:34 -07:00
parent 7cff32c359
commit a9de0fa50e
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
2 changed files with 11 additions and 7 deletions

View file

@ -49,6 +49,17 @@
KERNEL=="macsmc-battery", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}="90", ATTR{charge_control_start_threshold}="85"
'';
swapDevices =
let
gb = x: x * 1024;
in
[
{
device = "/var/lib/swapfile";
size = gb 4;
}
];
services.keyd = {
enable = true;
keyboards = {