add auto restart

This commit is contained in:
Henry Hiles 2025-10-29 11:42:29 -04:00
commit 7896091428
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -22,7 +22,7 @@
"github.com/ggicci/caddy-jwt@v1.1.0" "github.com/ggicci/caddy-jwt@v1.1.0"
"pkg.jsn.cam/caddy-defender@v0.9.0" "pkg.jsn.cam/caddy-defender@v0.9.0"
]; ];
hash = "sha256-2FDvTpK608UrnOXvjzC7S2gtxf9HUOE9Mw2/E6YzBi0="; hash = "sha256-HbVHQb97MQwaoXwf1EP0fr+4yKuZC6nTicvxw6JZAkY=";
}; };
virtualHosts = lib.mapAttrs (domain: host: { virtualHosts = lib.mapAttrs (domain: host: {

View file

@ -12,14 +12,16 @@
settings = lib.mkOption { settings = lib.mkOption {
type = lib.types.submodule { type = lib.types.submodule {
freeformType = (pkgs.formats.toml { }).type; freeformType = (pkgs.formats.toml { }).type;
}; };
default = { }; default = { };
}; };
}; };
config = { config = {
systemd.services.continuwuity.serviceConfig.Restart = lib.mkForce "always"; systemd.services.continuwuity.serviceConfig = {
Restart = lib.mkForce "always";
RuntimeMaxSec = "1d";
};
services = services =
let let
subdomain = "matrix.${config.quad.matrix.domain}"; subdomain = "matrix.${config.quad.matrix.domain}";