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"
"pkg.jsn.cam/caddy-defender@v0.9.0"
];
hash = "sha256-2FDvTpK608UrnOXvjzC7S2gtxf9HUOE9Mw2/E6YzBi0=";
hash = "sha256-HbVHQb97MQwaoXwf1EP0fr+4yKuZC6nTicvxw6JZAkY=";
};
virtualHosts = lib.mapAttrs (domain: host: {

View file

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