nixos/dafoe/services/domains.nix

62 lines
1.4 KiB
Nix
Raw Normal View History

2024-06-17 17:13:21 +02:00
{ 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.
'';
2024-06-17 17:21:30 +02:00
type = types.str;
default = "";
2024-06-17 17:13:21 +02:00
};
git = mkOption {
description = ''
2024-06-17 17:21:30 +02:00
url of the git instance.
2024-06-17 17:13:21 +02:00
'';
type = types.nullOr types.str;
2024-06-17 17:21:30 +02:00
default = "git.${domain}";
2024-06-17 17:13:21 +02:00
};
vaultwarden = mkOption {
description = ''
2024-06-17 17:21:30 +02:00
url of the vaultwarden instance
2024-06-17 17:13:21 +02:00
'';
default = "vaultwarden";
type = types.nullOr types.str;
};
video = mkOption {
description = ''
2024-06-17 17:21:30 +02:00
url of the video instance
2024-06-17 17:13:21 +02:00
'';
default = "video";
type = types.nullOr types.str;
};
www = mkOption {
description = ''
2024-06-17 17:21:30 +02:00
url of the www instance
2024-06-17 17:13:21 +02:00
'';
default = "www";
type = types.nullOr types.str;
};
files = mkOption {
description = ''
2024-06-17 17:21:30 +02:00
url of the files instance
2024-06-17 17:13:21 +02:00
'';
default = "files";
type = types.nullOr types.str;
};
cloud = mkOption {
description = ''
2024-06-17 17:21:30 +02:00
url of the cloud instance
2024-06-17 17:13:21 +02:00
'';
default = "cloud";
type = types.nullOr types.str;
};
};
}