Avoid "networking.domain"

This commit is contained in:
SebastianStork 2025-05-28 21:11:51 +02:00
parent 383235ae24
commit d5f7e88b59
10 changed files with 32 additions and 29 deletions

View file

@ -13,7 +13,7 @@ in
{
options.custom.services.nextcloud = {
enable = lib.mkEnableOption "";
subdomain = lib.mkOption {
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
@ -30,7 +30,7 @@ in
services.nextcloud = {
enable = true;
package = pkgs.nextcloud31;
hostName = "${cfg.subdomain}.${config.networking.domain}";
hostName = cfg.domain;
database.createLocally = true;
config = {