snowfield/modules/homer/default.nix

26 lines
442 B
Nix
Raw Normal View History

2024-03-30 20:18:12 +01:00
{ lib, config, ... }:
2022-02-26 19:07:28 +01:00
with lib;
let
cfg = config.luj.homer;
in
{
options.luj.homer = {
enable = mkEnableOption "enable homer";
};
config = mkIf cfg.enable
{
luj.nginx.enable = true;
2023-08-06 20:32:16 +02:00
security.acme.certs."home.luj".server = "https://ca.luj/acme/acme/directory";
2022-05-10 06:46:32 +02:00
2022-04-02 19:57:47 +02:00
services.nginx.virtualHosts."home.luj" = {
2022-05-10 06:46:32 +02:00
enableACME = true;
2022-02-26 19:07:28 +01:00
forceSSL = true;
root = "/srv/homer/";
};
};
}