updates & crypto

This commit is contained in:
Julian Sutter 2025-04-26 20:07:24 -07:00
parent 256b163931
commit be4255e26f
4 changed files with 29 additions and 10 deletions

View file

@ -30,6 +30,23 @@
};
};
# Swap
swapDevices = [
{
device = "/swapfile";
size = 102400;
# optional: set up file with correct permissions at activation
priority = 0;
}
];
systemd.tmpfiles.rules = [
"f /swapfile 0600 root root - -"
];
# Disable power-profiles-daemon to resolve conflict
services.power-profiles-daemon.enable = false;
@ -49,6 +66,7 @@
services.logind = {
lidSwitch = "suspend";
lidSwitchDocked = "ignore"; # Prevent suspend when connected to a dock
lidSwitchExternalPower = "ignore";
powerKey = "poweroff"; # Optional: configure behavior for the power key
suspendKey = "suspend"; # Optional: configure behavior for the suspend key
};