diff --git a/hosts/nixos/lapetus/services/invidious.nix b/hosts/nixos/lapetus/services/invidious.nix index 214103b..545b755 100644 --- a/hosts/nixos/lapetus/services/invidious.nix +++ b/hosts/nixos/lapetus/services/invidious.nix @@ -4,8 +4,9 @@ ../../common/optional/services/postgres.nix ]; - sops.secrets.invidious_hmac_key = { - sopsFile = ../secrets.yaml; + sops.secrets.invidious_hmac_key.sopsFile = ../secrets.yaml; + sops.templates."invidious_hmac_key.json" = { + content = ''{ "hmac_key": "${config.sops.placeholder.invidious_hmac_key}" }''; mode = "0444"; # I don't care about this key that much, as I'm the only user of this instance }; @@ -16,7 +17,7 @@ enable = true; domain = "yt.moonythm.dev"; port = 8414; - hmacKeyFile = config.sops.secrets.invidious_hmac_key.path; + hmacKeyFile = config.sops.templates."invidious_hmac_key.json".path; nginx.enable = true; @@ -25,7 +26,6 @@ admins = [ "prescientmoon" ]; default_user_preferences = { default_home = "Subscriptions"; - max_results = 40; comments = [ "youtube" "reddit" ]; save_player_pos = true; automatic_instance_redirect = true;