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" 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 = { services.keyd = {
enable = true; enable = true;
keyboards = { keyboards = {

View file

@ -38,13 +38,6 @@
]; ];
}; };
swapDevices = [
{
device = "/var/lib/swapfile";
size = 32 * 1024;
}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction # still possible to use this option, but it's recommended to use it in conjunction