From 52d0513ab38b5b95f7dc37ca2f468e7f328fa318 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Fri, 11 Oct 2024 12:44:13 +0200 Subject: [PATCH] Fix lapetus invidous db user --- hosts/nixos/lapetus/services/invidious.nix | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/hosts/nixos/lapetus/services/invidious.nix b/hosts/nixos/lapetus/services/invidious.nix index 1542ca8..4875777 100644 --- a/hosts/nixos/lapetus/services/invidious.nix +++ b/hosts/nixos/lapetus/services/invidious.nix @@ -1,4 +1,5 @@ -{ config, pkgs, ... }: { +{ config, pkgs, ... }: +{ sops.secrets.invidious_hmac_key.sopsFile = ../secrets.yaml; sops.templates."invidious_hmac_key.json" = { content = ''{ "hmac_key": "${config.sops.placeholder.invidious_hmac_key}" }''; @@ -18,21 +19,18 @@ admins = [ "prescientmoon" ]; default_user_preferences = { default_home = "Subscriptions"; - comments = [ "youtube" "reddit" ]; + comments = [ + "youtube" + "reddit" + ]; save_player_pos = 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.overrideAttrs (_oldAttrs: { - src = pkgs.fetchFromGitHub { - owner = "iv-org"; - repo = "invidious"; - fetchSubmodules = true; - rev = "eda7444ca46dbc3941205316baba8030fe0b2989"; - sha256 = "0iafxgb93jxx9ams6ll2yx8il4d7h89a630hcx9y8jj4gn3ax7v1"; - }; - }); + package = pkgs.invidious; }; }