fix dhcp lease to unbount, git runner and openconnect keepalive

This commit is contained in:
2023-12-13 17:51:04 +01:00
parent 82bda66d24
commit 3b207db752
4 changed files with 27 additions and 5 deletions

View File

@@ -100,6 +100,9 @@ in
}; };
}; };
sops.secrets.gitea-runner-token = { };
services.gitea-actions-runner.instances.main = { services.gitea-actions-runner.instances.main = {
enable = true; enable = true;
url = "https://git.cloonar.com"; url = "https://git.cloonar.com";

View File

@@ -59,7 +59,7 @@
"light.kitchen_lights" "light.kitchen_lights"
"light.livingroom_lights" "light.livingroom_lights"
"light.hallway_lights" "light.hallway_lights"
"light.bathroom_light" "light.bathroom_lights"
"light.toilett_lights" "light.toilett_lights"
"light.storage_lights" "light.storage_lights"
]; ];

View File

@@ -19,4 +19,22 @@ in
}; };
}; };
}; };
systemd.services.openconnect-wrwks-keepalive = {
serviceConfig.Type = "oneshot";
path = with pkgs; [ bash ];
script = ''
ping -c 2 stage.wsw.at
'';
};
systemd.timers.openconnect-wrwks-keepalive = {
wantedBy = [ "timers.target" ];
partOf = [ "openconnect-wrwks-keepalive.service" ];
timerConfig = {
OnCalendar = "*:0/1";
Unit = "openconnect-wrwks-keepalive.service";
};
};
} }

View File

@@ -148,8 +148,8 @@ in {
hostPath = "${config.security.acme.certs.${domain}.directory}"; hostPath = "${config.security.acme.certs.${domain}.directory}";
isReadOnly = true; isReadOnly = true;
}; };
"/var/lib/kea/dhcp4.leases" = { "/var/lib/kea" = {
hostPath = "/var/lib/kea/dhcp4.leases"; hostPath = "/var/lib/kea";
isReadOnly = true; isReadOnly = true;
}; };
}; };
@@ -220,9 +220,10 @@ in {
} }
function syncFile() { function syncFile() {
readFileUnique "''\$1" "''\$2" # readFileUnique "''\$1" "''\$2"
while inotifywait -e close_write,create "''\$1" ; do while true; do
readFileUnique "''\$1" "''\$2" readFileUnique "''\$1" "''\$2"
sleep 10
done done
} }