mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
29 lines
564 B
Nix
29 lines
564 B
Nix
{ lib, pkgs, 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;
|
|
default = true;
|
|
};
|
|
|
|
services.nginx.virtualHosts."www.julienmalka.me" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
root = inputs.homepage;
|
|
};
|
|
|
|
|
|
};
|
|
}
|