mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Merge pull request #589 from genebean/pinchflat
Migrate to Nix's Pinchflat from container
This commit is contained in:
commit
22b57c9279
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}" ];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -10,7 +10,6 @@ in {
|
|||
./hardware-configuration.nix
|
||||
./containers/audiobookshelf.nix
|
||||
./containers/mountain-mesh-bot-discord.nix
|
||||
./containers/pinchflat.nix
|
||||
./containers/psitransfer.nix
|
||||
../../common/linux/lets-encrypt.nix
|
||||
../../common/linux/restic.nix
|
||||
|
|
@ -96,7 +95,7 @@ in {
|
|||
8384 # Syncthing gui
|
||||
8888 # Atuin
|
||||
8090 # Wallabag in docker compose
|
||||
8945 # Pinchflat in oci-container
|
||||
8945 # Pinchflat
|
||||
9090 # Prometheus Server
|
||||
9273 # Telegraf's Prometheus endpoint
|
||||
13378 # Audiobookshelf in oci-container
|
||||
|
|
@ -490,6 +489,13 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
pinchflat = {
|
||||
enable = true;
|
||||
group = "jellyfin";
|
||||
mediaDir = "/orico/jellyfin/data/Pinchflat";
|
||||
selfhosted = true; # Only because this is not exsposed to the web
|
||||
user = "jellyfin";
|
||||
};
|
||||
postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue