Reduce stupid systemd default timeout to possibly stop hanging at shutdown

This commit is contained in:
Payas Relekar 2020-01-12 14:23:48 +05:30
parent 1c3116359a
commit bd3921d523

View file

@ -119,6 +119,11 @@
# Open ports for KDE Connect
networking.firewall.extraCommands = "iptables -I INPUT -i wlo1 -p udp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT && iptables -I INPUT -i wlo1 -p tcp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT && iptables -A OUTPUT -o wlo1 -p udp --sport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT && iptables -A OUTPUT -o wlo1 -p tcp --sport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT\n";
# Reduce stupid systemd shutdown timer so it possibly takes less time next time
systemd.extraConfig = ''
DefaultTimeoutStopSec=10s
'';
# Enable CUPS to print documents.
services.printing.enable = true;