1
Fork 0

Fix lapetus invidous db user

This commit is contained in:
prescientmoon 2024-10-11 12:44:13 +02:00
parent f64c0e35bf
commit 52d0513ab3
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U

View file

@ -1,4 +1,5 @@
{ config, pkgs, ... }: { { config, pkgs, ... }:
{
sops.secrets.invidious_hmac_key.sopsFile = ../secrets.yaml; sops.secrets.invidious_hmac_key.sopsFile = ../secrets.yaml;
sops.templates."invidious_hmac_key.json" = { sops.templates."invidious_hmac_key.json" = {
content = ''{ "hmac_key": "${config.sops.placeholder.invidious_hmac_key}" }''; content = ''{ "hmac_key": "${config.sops.placeholder.invidious_hmac_key}" }'';
@ -18,21 +19,18 @@
admins = [ "prescientmoon" ]; admins = [ "prescientmoon" ];
default_user_preferences = { default_user_preferences = {
default_home = "Subscriptions"; default_home = "Subscriptions";
comments = [ "youtube" "reddit" ]; comments = [
"youtube"
"reddit"
];
save_player_pos = true; save_player_pos = true;
automatic_instance_redirect = true; automatic_instance_redirect = true;
}; };
# The error when updating to 24.05 asked me to set this
db.user = "invidious";
}; };
# REASON: the current invidious is broken, and cannot play videos package = pkgs.invidious;
package = pkgs.invidious.overrideAttrs (_oldAttrs: {
src = pkgs.fetchFromGitHub {
owner = "iv-org";
repo = "invidious";
fetchSubmodules = true;
rev = "eda7444ca46dbc3941205316baba8030fe0b2989";
sha256 = "0iafxgb93jxx9ams6ll2yx8il4d7h89a630hcx9y8jj4gn3ax7v1";
};
});
}; };
} }