nixos/dafoe/services/domains.nix
2024-06-17 17:21:30 +02:00

62 lines
No EOL
1.4 KiB
Nix

{ 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;
};
};
}