add auto reboot
This commit is contained in:
parent
7876f5dcd1
commit
b6d66dda50
2 changed files with 12 additions and 4 deletions
11
clients/quadraticserver/restart.nix
Normal file
11
clients/quadraticserver/restart.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
systemd.timers.reboot = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "*-*-* 02:00:00";
|
||||||
|
Persistent = true;
|
||||||
|
Unit = "reboot.target";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -18,10 +18,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
systemd.services.continuwuity.serviceConfig = {
|
systemd.services.continuwuity.serviceConfig.Restart = lib.mkForce "always";
|
||||||
Restart = lib.mkForce "always";
|
|
||||||
RuntimeMaxSec = "1d";
|
|
||||||
};
|
|
||||||
services =
|
services =
|
||||||
let
|
let
|
||||||
subdomain = "matrix.${config.quad.matrix.domain}";
|
subdomain = "matrix.${config.quad.matrix.domain}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue