mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
Compare commits
No commits in common. "7fd21d8cde2afb0ddf0da4d702a9be825fea7508" and "286388294db4eb815d52898f913c8ec6587c5105" have entirely different histories.
7fd21d8cde
...
286388294d
2 changed files with 0 additions and 45 deletions
|
|
@ -77,11 +77,6 @@
|
||||||
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}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue