diff options
author | sefidel <contact@sefidel.net> | 2024-05-18 22:34:12 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-05-18 22:36:19 +0900 |
commit | 285def0953b5afc6baf6f82e62944f812cf9c130 (patch) | |
tree | dbf7b79fc9c8d6b835095d6cb7bfeddf15e53a7a | |
parent | 08509bad8d610898435d822e8fa16b1528257c27 (diff) | |
download | infra-285def0953b5afc6baf6f82e62944f812cf9c130.tar.gz infra-285def0953b5afc6baf6f82e62944f812cf9c130.zip |
feat(modules/rss)!: rename whitelist -> enabled_bridges
-rw-r--r-- | modules/services/rss.nix | 6 | ||||
-rw-r--r-- | systems/cobalt/default.nix | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/services/rss.nix b/modules/services/rss.nix index c9663ee..70dc09c 100644 --- a/modules/services/rss.nix +++ b/modules/services/rss.nix @@ -14,7 +14,7 @@ in enable = mkEnableOption "RSS Bridge"; domain = mkOption { type = types.str; default = cfg.domain; }; realHost = mkOption { type = types.str; default = "rss-bridge.${cfg.bridge.domain}"; }; - whitelist = mkOption { type = types.listOf types.str; default = []; }; + enabled_bridges = mkOption { type = types.listOf types.str; default = []; }; }; }; @@ -47,8 +47,8 @@ in services.rss-bridge = { enable = true; virtualHost = cfg.bridge.realHost; - } // optionalAttrs (cfg.bridge.whitelist != []) { - whitelist = cfg.bridge.whitelist; + } // optionalAttrs (cfg.bridge.enabled_bridges != []) { + config.system.enabled_bridges = cfg.bridge.enabled_bridges; }; modules.persistence.directories = [ diff --git a/systems/cobalt/default.nix b/systems/cobalt/default.nix index 22e4049..758f331 100644 --- a/systems/cobalt/default.nix +++ b/systems/cobalt/default.nix @@ -348,7 +348,7 @@ in enable = true; inherit domain; realHost = "rss-bridge.exotic.sh"; - whitelist = [ "*" ]; + enabled_bridges = [ "*" ]; }; secrets.admin-password = config.sops.secrets.freshrss-admin-pass.path; }; |