1
0
Fork 0
nix-configuration/modules/services/systemd.nix

18 lines
380 B
Nix
Raw Normal View History

2024-05-02 01:10:26 +00:00
# Configure systemD
_: {
services = {
# Allow systemd user services to keep running after the user has logged out
logind.killUserProcesses = false;
};
2024-05-02 01:10:26 +00:00
# Reduce systemd logout time to 30s
environment.etc = {
"systemd/system.conf.d/10-reduce-logout-wait-time.conf" = {
text = ''
[Manager]
DefaultTimeoutStopSec=30s
'';
};
};
}