[fix] everything: various bugs found in production

This commit is contained in:
Jalil David Salamé Messina 2024-05-09 00:59:43 +02:00
parent 68658bf83f
commit 15e2d2da06
Signed by: jalil
GPG key ID: F016B9E770737A0B
7 changed files with 138 additions and 178 deletions

View file

@ -13,6 +13,11 @@ in {
type = types.submodule {
options = {
enable = mkEnableOption "webnsupdate";
extraArgs = mkOption {
description = ''
Extra arguments to be passed to the webnsupdate server command.
'';
};
bindIp = mkOption {
description = ''
IP address to bind to.
@ -130,6 +135,7 @@ in {
wantedBy = ["multi-user.target"];
after = ["network.target" "bind.service"];
preStart = "${cmd} verify";
path = [pkgs.dig];
startLimitIntervalSec = 60;
serviceConfig = {
ExecStart = [cmd];