file cleanup, conditional motd
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
...
|
||||
}: let
|
||||
cfg = config.homelab.ddns;
|
||||
token = config.sops.secrets."cloudflare/api_token".path;
|
||||
sec = config.sops.secrets;
|
||||
in {
|
||||
options.homelab.ddns = {
|
||||
@@ -15,7 +14,7 @@ in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.cloudflare-ddns = {
|
||||
enable = true;
|
||||
credentialsFile = token;
|
||||
credentialsFile = sec."cloudflare/api_token".path;
|
||||
domains = [
|
||||
# recoil.pro
|
||||
"recoil.pro"
|
||||
@@ -31,12 +30,9 @@ in {
|
||||
"*.blakedheld.xyz"
|
||||
"git.blakedheld.xyz"
|
||||
"up.blakedheld.xyz"
|
||||
|
||||
];
|
||||
};
|
||||
|
||||
# network config
|
||||
|
||||
# declare authkey secrets
|
||||
sops.secrets = {
|
||||
"cloudflare/api_token" = {
|
||||
|
||||
Reference in New Issue
Block a user