init commit
This commit is contained in:
commit
181e6f681e
22 changed files with 940 additions and 0 deletions
18
scripts/virtualisation/restart-netbird-relay.nix
Normal file
18
scripts/virtualisation/restart-netbird-relay.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
systemd.timers.restart-netbird-relay = {
|
||||
timerConfig = {
|
||||
Unit = "update-containers.service";
|
||||
OnCalendar = "Tue 02:40"; # 10 mins after podman pull
|
||||
};
|
||||
wantedBy = [ "timers.target" ];
|
||||
};
|
||||
systemd.services.restart-netbird-relay = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.systemd}/bin/systemctl try-restart podman-netbird-relay.service";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue