mirror of
https://github.com/genebean/dots.git
synced 2026-03-28 09:57:43 -04:00
Migrate to Nix's Pinchflat from container
The primary motivator here was that the NFO files from Pinchflat had the path to everything starting at `/downloads` and that didn't work well with Jellyfin who saw the real path to the files
This commit is contained in:
parent
5a85cc5ed4
commit
d347228cbb
2 changed files with 8 additions and 41 deletions
|
|
@ -1,39 +0,0 @@
|
|||
{ config, ... }: let
|
||||
volume_base = "/orico/pinchflat";
|
||||
jellyfin_youtube = "/orico/jellyfin/data/YouTube";
|
||||
container_user = "jellyfin";
|
||||
uid = "990";
|
||||
gid = "989";
|
||||
in {
|
||||
virtualisation.oci-containers.containers = {
|
||||
"pinchflat" = {
|
||||
autoStart = true;
|
||||
environmentFiles = [
|
||||
"${volume_base}/.env"
|
||||
];
|
||||
extraOptions = [
|
||||
"--security-opt"
|
||||
"label=disable"
|
||||
"--userns=keep-id"
|
||||
];
|
||||
image = "ghcr.io/kieraneglin/pinchflat:latest";
|
||||
ports = [
|
||||
"8945:8945"
|
||||
];
|
||||
user = "${uid}:${gid}"; # observed UID:GID of jellyfin user
|
||||
volumes = [
|
||||
"${volume_base}/config:/config"
|
||||
"${jellyfin_youtube}:/downloads"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.restic.backups.daily.paths = [ volume_base ];
|
||||
|
||||
sops.secrets.pinchflat_dot_env = {
|
||||
owner = "${container_user}";
|
||||
path = "${volume_base}/.env";
|
||||
restartUnits = [ "${config.virtualisation.oci-containers.containers.pinchflat.serviceName}" ];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue