mirror of
https://github.com/blahai/nyx.git
synced 2025-02-24 16:08:29 +00:00
19 lines
322 B
Nix
19 lines
322 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib.modules) mkIf;
|
||
|
inherit (lib.services) mkServiceOption;
|
||
|
|
||
|
cfg = config.olympus.services.caddy;
|
||
|
in {
|
||
|
options.olympus.services.caddy = mkServiceOption "caddy" {domain = "blahai.gay";};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
services.caddy = {
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
}
|