blob: a5237e6256a306aeef1e989de55cb138d6917173 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{
config,
lib,
...
}: let
cfg = config.sils.gallery;
in {
options.sils.gallery = {
enable = lib.mkEnableOption "a stateful static gallery site";
domain = lib.mkOption {
type = lib.types.str;
};
};
config = lib.mkIf cfg.enable {
vhack.nginx.enable = true;
services.nginx.virtualHosts."${cfg.domain}" = {
forceSSL = true;
enableACME = true;
root = "/srv/${cfg.domain}";
};
};
}
|