feat(dns,nginx): add some weird magic

This commit is contained in:
Luj 2024-10-26 04:09:35 +02:00
parent ab03b23b45
commit 714a279fc2
Signed by: luj
GPG key ID: 6FC74C847011FD83
8 changed files with 127 additions and 72 deletions

View file

@ -1,4 +1,9 @@
{ lib, inputs, config, ... }:
{
lib,
inputs,
config,
...
}:
with lib;
let
cfg = config.luj.homepage;
@ -8,21 +13,12 @@ in
enable = mkEnableOption "enable homepage";
};
config = mkIf cfg.enable
{
luj.nginx.enable = true;
services.nginx.virtualHosts."julienmalka.me" = {
enableACME = true;
forceSSL = true;
root = inputs.homepage;
};
services.nginx.virtualHosts."www.julienmalka.me" = {
enableACME = true;
forceSSL = true;
root = inputs.homepage;
};
config = mkIf cfg.enable {
luj.nginx.enable = true;
services.nginx.virtualHosts."julienmalka.me" = {
enableACME = true;
forceSSL = true;
root = inputs.homepage;
};
};
}