desktop preparing
This commit is contained in:
parent
d2b59d97cb
commit
79d3f7e89d
7 changed files with 65 additions and 47 deletions
|
|
@ -1,14 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
systemd = {
|
||||
tmpfiles.rules = [
|
||||
"d /var/spool/postfix 0755 postfix postfix -"
|
||||
"d /var/spool/postfix/private 0755 postfix postfix -"
|
||||
];
|
||||
timers = {
|
||||
tgbot-send = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
|
|
@ -53,7 +45,7 @@
|
|||
else
|
||||
limit=$(cat /run/network.limit)
|
||||
failures=$((1+$(cat /run/network.failures)))
|
||||
echo "<5>failures = $failures"
|
||||
[ $failures -gt 1 ] && echo "<5>failures = $failures"
|
||||
fi
|
||||
if [ $failures -ge $limit ]; then
|
||||
echo "<4>restarting NetworkManager"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue