troubleshoot suwayomi

This commit is contained in:
2025-10-12 18:21:26 -05:00
parent f76c6862ba
commit cd55d1d7cf
6 changed files with 9 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# flake for blakes nixos config
# define new devices in outputs
# generation: 369, timestamp: 2025-10-12 16:39:52
# generation: 373, timestamp: 2025-10-12 18:19:50
{
description = "blakes nix config";
inputs = {

View File

@@ -36,6 +36,7 @@ in
jellyfin.enable = true;
audiobookshelf.enable = true;
yacreader.enable = true;
suwayomi-server.enable = true;
vaultwarden.enable = true;
gitea.enable = true;
glance.enable = true;

View File

@@ -49,7 +49,7 @@ in
uid = lib.mkForce cfg.ids;
isSystemUser = true;
home = cfg.data_dir;
createHome = true;
# createHome = true;
group = "${service}";
extraGroups = [ "media" ];
};
@@ -64,7 +64,7 @@ in
server = {
port = cfg.port;
downloadAsCbz = true;
localSourcePath = cfg.data_dir;
# localSourcePath = cfg.data_dir;
};
};
};

View File

@@ -10,6 +10,7 @@
./gitea
./home/homeassistant
./immich
./arr/suwayomi
./arr/bazarr
./arr/prowlarr
./arr/radarr

View File

@@ -40,6 +40,9 @@ in
config = lib.mkIf cfg.enable {
# install the binary
environment.systemPackages = with pkgs; [ yacreader ];
# declare ${service} group
users.groups.${service} = { gid = lib.mkForce cfg.ids; };

View File

@@ -56,7 +56,7 @@ in
export BORG_PASSPHRASE="$(cat ${cfg.passwd_file})"
export BORG_REPO="${cfg.repo}"
timestamp="$(date +'%Y-%m-%d_%H:%M:%S')"
mode=all
mode=sep
# init repo in needed
if ! borg info "$BORG_REPO" >/dev/null 2>&1; then