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 ./nextcloud.nix
./domains.nix ./domains.nix
]; ];
services.domains = { services.domains.enable = true;
enable = true;
domain = "vatthauer.xyz";
};
} }

View file

@ -13,50 +13,52 @@ in
description = '' description = ''
Domain of the server. Domain of the server.
''; '';
type = types.str; type = types.nullOr types.str;
default = "";
}; };
git = mkOption { git = mkOption {
description = '' description = ''
url of the git instance. Subdomain of the git instance.
''; '';
type = types.nullOr types.str; type = types.nullOr types.str;
default = "git.${domain}"; default = "git";
}; };
vaultwarden = mkOption { vaultwarden = mkOption {
description = '' description = ''
url of the vaultwarden instance Subdomain of the vaultwarden instance
''; '';
default = "vaultwarden"; default = "vaultwarden";
type = types.nullOr types.str; type = types.nullOr types.str;
}; };
video = mkOption { video = mkOption {
description = '' description = ''
url of the video instance Subdomain of the video instance
''; '';
default = "video"; default = "video";
type = types.nullOr types.str; type = types.nullOr types.str;
}; };
www = mkOption { www = mkOption {
description = '' description = ''
url of the www instance Subdomain of the www instance
''; '';
default = "www"; default = "www";
type = types.nullOr types.str; type = types.nullOr types.str;
}; };
files = mkOption { files = mkOption {
description = '' description = ''
url of the files instance Subdomain of the files instance
''; '';
default = "files"; default = "files";
type = types.nullOr types.str; type = types.nullOr types.str;
}; };
cloud = mkOption { cloud = mkOption {
description = '' description = ''
url of the cloud instance Subdomain of the cloud instance
''; '';
default = "cloud"; default = "cloud";
type = types.nullOr types.str; 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 services.nginx.virtualHosts = let domain = "vatthauer.xyz"; in
{ {
"config.domains.git" = { "config.domains.gitURL" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {