mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Avoid "networking.domain"
This commit is contained in:
parent
383235ae24
commit
d5f7e88b59
10 changed files with 32 additions and 29 deletions
|
|
@ -11,7 +11,7 @@ in
|
|||
{
|
||||
options.custom.services.forgejo = {
|
||||
enable = lib.mkEnableOption "";
|
||||
subdomain = lib.mkOption {
|
||||
domain = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default = "";
|
||||
};
|
||||
|
|
@ -30,7 +30,7 @@ in
|
|||
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "${cfg.subdomain}.${config.networking.domain}";
|
||||
DOMAIN = cfg.domain;
|
||||
ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}/";
|
||||
HTTP_PORT = cfg.port;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue