{ config, lib, pkgs, ... }: with lib; let cfg = config.domains; in { domains = { enable = mkOption { default = false; type = types.nullOr types.bool; }; domain = mkOption { description = '' Domain of the server. ''; type = types.str; default = ""; }; git = mkOption { description = '' url of the git instance. ''; type = types.nullOr types.str; default = "git.${domain}"; }; vaultwarden = mkOption { description = '' url of the vaultwarden instance ''; default = "vaultwarden"; type = types.nullOr types.str; }; video = mkOption { description = '' url of the video instance ''; default = "video"; type = types.nullOr types.str; }; www = mkOption { description = '' url of the www instance ''; default = "www"; type = types.nullOr types.str; }; files = mkOption { description = '' url of the files instance ''; default = "files"; type = types.nullOr types.str; }; cloud = mkOption { description = '' url of the cloud instance ''; default = "cloud"; type = types.nullOr types.str; }; }; }