hosts/ni/services: update base domain and config

This commit is contained in:
Gabriel Arazas 2025-01-09 12:43:38 +08:00
parent abcbb46cac
commit f5cc6f27e6
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 9 additions and 19 deletions

View File

@ -18,7 +18,7 @@ in
$ORIGIN foodogsquared.internal. $ORIGIN foodogsquared.internal.
$TTL 3600 $TTL 3600
@ IN SOA ns1.foodogsquared.internal. admin@foodogsquared.one. ( @ IN SOA ns1.foodogsquared.internal. admin.foodogsquared.one. (
2025010101 ;Serial 2025010101 ;Serial
3600 ;Refresh 3600 ;Refresh
3600 ;Retry 3600 ;Retry
@ -27,16 +27,13 @@ in
) )
3600 IN NS ns1.foodogsquared.internal. 3600 IN NS ns1.foodogsquared.internal.
ni 3600 IN A 127.0.0.1. ni 3600 IN A 127.0.0.1
ns1 3600 IN A 127.0.0.1. ns1 3600 IN A 127.0.0.1
rss 3600 IN A 127.0.0.1. rss 3600 IN A 127.0.0.1
''; '';
}; };
security.ipa = { services.resolved.domains = [ "~foodogsquared.internal" ];
enable = true; networking.nameservers = [ "127.0.0.1" ];
domain = "foodogsquared.internal";
dyndns.enable = true;
};
}; };
} }

View File

@ -65,8 +65,6 @@ in
# We're putting as a separate config file instead of configuring it # We're putting as a separate config file instead of configuring it
# in the service properly since secrets decrypted by sops-nix cannot # in the service properly since secrets decrypted by sops-nix cannot
# be read in Nix. # be read in Nix.
"--config"
"${config.sops.secrets."${pathPrefix}/secrets-config".path}"
]; ];
# Given an attribute set of jobs that contains a list of objects with # Given an attribute set of jobs that contains a list of objects with
@ -98,11 +96,6 @@ in
lib.listToAttrs jobsList; lib.listToAttrs jobsList;
in in
{ {
sops.secrets = getSecrets ./secrets.yaml
(attachSopsPathPrefix pathPrefix {
"secrets-config" = { };
});
suites.filesystem.setups.archive.enable = true; suites.filesystem.setups.archive.enable = true;
services.yt-dlp = { services.yt-dlp = {

View File

@ -22,12 +22,12 @@ in
adminCredentialsFile = config.sops.secrets."miniflux/admin".path; adminCredentialsFile = config.sops.secrets."miniflux/admin".path;
config = { config = {
LISTEN_ADDR = "127.0.0.1:${builtins.toString port}"; LISTEN_ADDR = "127.0.0.1:${builtins.toString port}";
BASE_URL = "http://rss.ni.internal"; BASE_URL = "http://rss.ni.local";
}; };
}; };
services.nginx.virtualHosts."rss.ni.internal" = { services.nginx.virtualHosts."rss.ni.local" = {
locations."/".proxyPass = "http://localhost:${builtins.toString port}"; locations."/".proxyPass = "http://ni.local:${builtins.toString port}";
}; };
}; };
} }