diff options
Diffstat (limited to 'modules/services/options.nix')
| -rw-r--r-- | modules/services/options.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/services/options.nix b/modules/services/options.nix index 024e2a0..3db8f8a 100644 --- a/modules/services/options.nix +++ b/modules/services/options.nix @@ -14,6 +14,7 @@ service_name = mkOption { type = lib.types.str; + default = service_name; internal = true; }; @@ -34,7 +35,8 @@ }; caddy = { - enable = mkEnableOption "Automatically create caddy configurations for this service"; + global.enable = mkEnableOption "Automatically create caddy configurations for this service"; + local.enable = mkEnableOption "Automatically make this service accessable on ${service_name}.local"; bind_tailscale = mkEnableOption "Bind the service to ${service_name}.{tailnet}"; }; }; @@ -77,6 +79,11 @@ in { }; }; + navidrome = selfhostOptions { + service_name = "navidrome"; + default_port = 8070; + }; + copyparty = (selfhostOptions { service_name = "copyparty"; |
