1
Fork 0

Write hmac key to json-like file

This commit is contained in:
prescientmoon 2024-03-11 16:30:04 +01:00
parent aa89185312
commit aa0da11a07
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -4,8 +4,9 @@
../../common/optional/services/postgres.nix ../../common/optional/services/postgres.nix
]; ];
sops.secrets.invidious_hmac_key = { sops.secrets.invidious_hmac_key.sopsFile = ../secrets.yaml;
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 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; enable = true;
domain = "yt.moonythm.dev"; domain = "yt.moonythm.dev";
port = 8414; port = 8414;
hmacKeyFile = config.sops.secrets.invidious_hmac_key.path; hmacKeyFile = config.sops.templates."invidious_hmac_key.json".path;
nginx.enable = true; nginx.enable = true;
@ -25,7 +26,6 @@
admins = [ "prescientmoon" ]; admins = [ "prescientmoon" ];
default_user_preferences = { default_user_preferences = {
default_home = "Subscriptions"; default_home = "Subscriptions";
max_results = 40;
comments = [ "youtube" "reddit" ]; comments = [ "youtube" "reddit" ];
save_player_pos = true; save_player_pos = true;
automatic_instance_redirect = true; automatic_instance_redirect = true;