nix-config/nixos/modules/homepage.nix
Tim Schubert a901e37b73
Some checks are pending
Continuous Integration / Checks (push) Waiting to run
feat(surgat): add soju bouncer
2025-08-03 00:22:07 +02:00

27 lines
488 B
Nix

{
config,
lib,
...
}:
let
cfg = config.dadada.homepage;
in
with lib;
{
options.dadada.homepage = {
enable = mkEnableOption "Enable home page";
package = mkOption {
type = lib.types.path;
description = "Path containing the homepage";
};
};
config = mkIf cfg.enable {
services.nginx.enable = true;
services.nginx.virtualHosts."dadada.li" = {
useACMEHost = "dadada.li";
forceSSL = true;
root = "${cfg.package}";
};
};
}