snowfield/modules/homer/default.nix
2022-06-18 23:23:13 +02:00

25 lines
461 B
Nix

{ lib, pkgs, inputs, config, ... }:
with lib;
let
cfg = config.luj.homer;
in
{
options.luj.homer = {
enable = mkEnableOption "enable homer";
};
config = mkIf cfg.enable
{
luj.nginx.enable = true;
security.acme.certs."home.luj".server = "https://ca.luj:8444/acme/acme/directory";
services.nginx.virtualHosts."home.luj" = {
enableACME = true;
forceSSL = true;
root = "/srv/homer/";
};
};
}