Revert changes to dafoe (tried to generalize)

This reverts commit 240879c909.
This commit is contained in:
Leon Vatthauer 2024-06-17 17:31:53 +02:00
parent 240879c909
commit a434afb90c
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
3 changed files with 13 additions and 14 deletions

View file

@ -11,8 +11,5 @@
./nextcloud.nix
./domains.nix
];
services.domains = {
enable = true;
domain = "vatthauer.xyz";
};
services.domains.enable = true;
}

View file

@ -13,50 +13,52 @@ in
description = ''
Domain of the server.
'';
type = types.str;
default = "";
type = types.nullOr types.str;
};
git = mkOption {
description = ''
url of the git instance.
Subdomain of the git instance.
'';
type = types.nullOr types.str;
default = "git.${domain}";
default = "git";
};
vaultwarden = mkOption {
description = ''
url of the vaultwarden instance
Subdomain of the vaultwarden instance
'';
default = "vaultwarden";
type = types.nullOr types.str;
};
video = mkOption {
description = ''
url of the video instance
Subdomain of the video instance
'';
default = "video";
type = types.nullOr types.str;
};
www = mkOption {
description = ''
url of the www instance
Subdomain of the www instance
'';
default = "www";
type = types.nullOr types.str;
};
files = mkOption {
description = ''
url of the files instance
Subdomain of the files instance
'';
default = "files";
type = types.nullOr types.str;
};
cloud = mkOption {
description = ''
url of the cloud instance
Subdomain of the cloud instance
'';
default = "cloud";
type = types.nullOr types.str;
};
};
config = mkIf cfg.enable {
gitURL = "${cfg.git}.${cfg.domain}";
};
}

View file

@ -10,7 +10,7 @@
services.nginx.virtualHosts = let domain = "vatthauer.xyz"; in
{
"config.domains.git" = {
"config.domains.gitURL" = {
enableACME = true;
forceSSL = true;
locations."/" = {