Compare commits

...

3 commits

Author SHA1 Message Date
7fd21d8cde
scrutiny: Persist data directory 2026-03-17 23:22:16 +01:00
19ebf53f8b
srv-core: Enable scrutiny 2026-03-17 22:53:51 +01:00
07355b1817
scrutiny: Init module 2026-03-17 22:53:39 +01:00
2 changed files with 45 additions and 0 deletions

View file

@ -77,6 +77,11 @@
enable = true; enable = true;
domain = "search.${config.custom.networking.overlay.domain}"; domain = "search.${config.custom.networking.overlay.domain}";
}; };
scrutiny = {
enable = true;
domain = "scrutiny.${config.custom.networking.overlay.domain}";
};
}; };
}; };
} }

View file

@ -0,0 +1,40 @@
{ config, lib, ... }:
let
cfg = config.custom.web-services.scrutiny;
in
{
options.custom.web-services.scrutiny = {
enable = lib.mkEnableOption "";
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
port = lib.mkOption {
type = lib.types.port;
default = 8466;
};
};
config = lib.mkIf cfg.enable {
services.scrutiny = {
enable = true;
settings.web.listen = {
host = "127.0.0.1";
inherit (cfg) port;
};
};
systemd.services.scrutiny.enableStrictShellChecks = false;
custom = {
services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
persistence.directories = [ "/var/lib/scrutiny" ];
meta.sites.${cfg.domain} = {
title = "Scrutiny";
icon = "sh:scrutiny";
};
};
};
}