autoupdates
This commit is contained in:
1 parent
6eb90819f0
commit
896d7480c1
7 files changed
+210
-12
No files matched your search
@@ -42,6 +42,7 @@
|
||||
|
||||
# Dockge container service group
|
||||
skyg.nixos.common.container-services.dockge = {
|
||||
enable = false;
|
||||
services.dockge = {
|
||||
image = "louislam/dockge:1";
|
||||
ports = [ "5001:5001" ];
|
||||
@@ -71,6 +72,71 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
skyg.nixos.common.container-services.jellyfin = {
|
||||
enable = true;
|
||||
autoUpdate.enable = true;
|
||||
services = {
|
||||
jellyfin = {
|
||||
image = "jellyfin/jellyfin";
|
||||
deploy = {
|
||||
resources = {
|
||||
reservations = {
|
||||
devices = [
|
||||
{
|
||||
driver = "cdi";
|
||||
device_ids = [ "nvidia.com/gpu=all" ];
|
||||
capabilities = [ "gpu" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
volumes = [
|
||||
"/opt/jellyfin:/mnt/apps/jellyfin"
|
||||
"torrents:/torrents"
|
||||
"family-videos:/family-videos"
|
||||
];
|
||||
devices = [ "/dev/dri:/dev/dri" ];
|
||||
restart = "always";
|
||||
healthcheck = {
|
||||
test = "curl --fail http://0.0.0.0:8096 || exit 1";
|
||||
interval = "60s";
|
||||
timeout = "20s";
|
||||
start_period = "30s";
|
||||
};
|
||||
environment = {
|
||||
JELLYFIN_DATA_DIR = "/mnt/apps/jellyfin/data";
|
||||
JELLYFIN_CACHE_DIR = "/mnt/apps/jellyfin/cache";
|
||||
JELLYFIN_CONFIG_DIR = "/mnt/apps/jellyfin/config";
|
||||
NVIDIA_VISIBLE_DEVICES = "all";
|
||||
};
|
||||
ports = [ "8096:8096" ];
|
||||
};
|
||||
};
|
||||
volumes = {
|
||||
torrents = {
|
||||
driver_opts = {
|
||||
"type" = "nfs";
|
||||
"o" = "addr=tnas1.lab.internal,nfsvers=4";
|
||||
"device" = ":/mnt/EightTerra/DownloadedTorrents";
|
||||
};
|
||||
};
|
||||
family-videos = {
|
||||
driver_opts = {
|
||||
"type" = "nfs";
|
||||
"o" = "addr=tnas1.lab.internal,nfsvers=4";
|
||||
"device" = ":/mnt/EightTerra/FamilyStorage/Video";
|
||||
};
|
||||
};
|
||||
jellyfin = {
|
||||
driver_opts = {
|
||||
"type" = "nfs";
|
||||
"o" = "addr=tnas1.lab.internal,nfsvers=4";
|
||||
"device" = ":/mnt/Data/apps/jellyfin";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.displayManager.defaultSession = "gnome";
|
||||
services.displayManager.gdm.enable = false;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
# Dockge container service group
|
||||
skyg.nixos.common.container-services.dockge = {
|
||||
enable = true;
|
||||
services.dockge = {
|
||||
image = "louislam/dockge:1";
|
||||
ports = [ "5001:5001" ];
|
||||
@@ -55,6 +56,8 @@
|
||||
|
||||
# Scrypted container service group
|
||||
skyg.nixos.common.container-services.scrypted = {
|
||||
enable = true;
|
||||
autoUpdate.enable = true;
|
||||
services.scrypted = {
|
||||
image = "ghcr.io/koush/scrypted";
|
||||
volumes = [
|
||||
@@ -81,7 +84,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Scrypted backup & autoupdate timers
|
||||
# Scrypted backup timer (image auto-update handled by container-services autoUpdate)
|
||||
skyg.server.timers = {
|
||||
scrypted-backups = {
|
||||
OnCalendar = "daily";
|
||||
@@ -91,13 +94,5 @@
|
||||
${pkgs.rsync}/bin/rsync -avpzP --delete /opt/homelab/scrypted /homelab/terra1/Data/apps/
|
||||
'';
|
||||
};
|
||||
scrypted-autoupdate = {
|
||||
OnCalendar = "weekly";
|
||||
script = ''
|
||||
set -eu
|
||||
${pkgs.docker}/bin/docker pull ghcr.io/koush/scrypted
|
||||
systemctl restart container-services-scrypted.service
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user