updates & crypto
This commit is contained in:
parent
256b163931
commit
be4255e26f
4 changed files with 29 additions and 10 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue