mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
24 lines
369 B
Nix
24 lines
369 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.luj.homepage;
|
|
in
|
|
{
|
|
options.luj.homepage = {
|
|
enable = mkEnableOption "enable homepage";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
luj.nginx.enable = true;
|
|
services.nginx.virtualHosts."julienmalka.me" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
root = inputs.homepage;
|
|
};
|
|
};
|
|
}
|