Recreated options
This commit is contained in:
parent
0b839e082a
commit
fc8178ed80
22 changed files with 325 additions and 205 deletions
|
|
@ -2,13 +2,19 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.caddy.virtualHosts."jsw.tf" = lib.mkIf config.niksos.server {
|
||||
extraConfig = ''
|
||||
header Content-Type text/html
|
||||
respond <<HTML
|
||||
${builtins.readFile ./index.html}
|
||||
HTML 200
|
||||
'';
|
||||
}: let
|
||||
name = "site";
|
||||
cfg = import ../lib/extractWebOptions.nix {inherit config name;};
|
||||
in {
|
||||
options = import ../lib/webOptions.nix {inherit config lib name;};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.caddy.virtualHosts.${cfg.domain} = {
|
||||
extraConfig = ''
|
||||
header Content-Type text/html
|
||||
respond <<HTML
|
||||
${builtins.readFile ./index.html}
|
||||
HTML 200
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue