mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
25 lines
442 B
Nix
25 lines
442 B
Nix
{ lib, 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/acme/acme/directory";
|
|
|
|
services.nginx.virtualHosts."home.luj" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
root = "/srv/homer/";
|
|
};
|
|
|
|
|
|
};
|
|
}
|