diff --git a/hosts/srv-core/configuration.nix b/hosts/srv-core/configuration.nix index 9ec0fae..e912bac 100644 --- a/hosts/srv-core/configuration.nix +++ b/hosts/srv-core/configuration.nix @@ -77,11 +77,6 @@ enable = true; domain = "search.${config.custom.networking.overlay.domain}"; }; - - scrutiny = { - enable = true; - domain = "scrutiny.${config.custom.networking.overlay.domain}"; - }; }; }; } diff --git a/modules/nixos/web-services/scrutiny.nix b/modules/nixos/web-services/scrutiny.nix deleted file mode 100644 index e0be952..0000000 --- a/modules/nixos/web-services/scrutiny.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ 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"; - }; - }; - }; -}