troubleshoot suwayomi
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# flake for blakes nixos config
|
# flake for blakes nixos config
|
||||||
# define new devices in outputs
|
# 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";
|
description = "blakes nix config";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ in
|
|||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
audiobookshelf.enable = true;
|
audiobookshelf.enable = true;
|
||||||
yacreader.enable = true;
|
yacreader.enable = true;
|
||||||
|
suwayomi-server.enable = true;
|
||||||
vaultwarden.enable = true;
|
vaultwarden.enable = true;
|
||||||
gitea.enable = true;
|
gitea.enable = true;
|
||||||
glance.enable = true;
|
glance.enable = true;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ in
|
|||||||
uid = lib.mkForce cfg.ids;
|
uid = lib.mkForce cfg.ids;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
home = cfg.data_dir;
|
home = cfg.data_dir;
|
||||||
createHome = true;
|
# createHome = true;
|
||||||
group = "${service}";
|
group = "${service}";
|
||||||
extraGroups = [ "media" ];
|
extraGroups = [ "media" ];
|
||||||
};
|
};
|
||||||
@@ -64,7 +64,7 @@ in
|
|||||||
server = {
|
server = {
|
||||||
port = cfg.port;
|
port = cfg.port;
|
||||||
downloadAsCbz = true;
|
downloadAsCbz = true;
|
||||||
localSourcePath = cfg.data_dir;
|
# localSourcePath = cfg.data_dir;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
./gitea
|
./gitea
|
||||||
./home/homeassistant
|
./home/homeassistant
|
||||||
./immich
|
./immich
|
||||||
|
./arr/suwayomi
|
||||||
./arr/bazarr
|
./arr/bazarr
|
||||||
./arr/prowlarr
|
./arr/prowlarr
|
||||||
./arr/radarr
|
./arr/radarr
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
# install the binary
|
||||||
|
environment.systemPackages = with pkgs; [ yacreader ];
|
||||||
|
|
||||||
# declare ${service} group
|
# declare ${service} group
|
||||||
users.groups.${service} = { gid = lib.mkForce cfg.ids; };
|
users.groups.${service} = { gid = lib.mkForce cfg.ids; };
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ in
|
|||||||
export BORG_PASSPHRASE="$(cat ${cfg.passwd_file})"
|
export BORG_PASSPHRASE="$(cat ${cfg.passwd_file})"
|
||||||
export BORG_REPO="${cfg.repo}"
|
export BORG_REPO="${cfg.repo}"
|
||||||
timestamp="$(date +'%Y-%m-%d_%H:%M:%S')"
|
timestamp="$(date +'%Y-%m-%d_%H:%M:%S')"
|
||||||
mode=all
|
mode=sep
|
||||||
|
|
||||||
# init repo in needed
|
# init repo in needed
|
||||||
if ! borg info "$BORG_REPO" >/dev/null 2>&1; then
|
if ! borg info "$BORG_REPO" >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user