many changes

This commit is contained in:
2024-07-02 23:03:24 +02:00
parent 972084cd65
commit 982a12ba08
13 changed files with 492 additions and 56 deletions

View File

@@ -19,5 +19,24 @@
};
};
systemd.timers."restart-palworld" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "*-*-* 3:00:00";
Unit = "restart-palworld.service";
};
};
systemd.services."restart-palworld" = {
script = ''
set -eu
${pkgs.systemd}/bin/systemctl restart podman-palworld.service
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
sops.secrets.palworld = {};
}