System/Nixinator: Add fileflows node
This commit is contained in:
@ -12,6 +12,9 @@
|
|||||||
./disks.nix
|
./disks.nix
|
||||||
|
|
||||||
../modules
|
../modules
|
||||||
|
|
||||||
|
# General services
|
||||||
|
../services/fileflows-node.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
|
|||||||
@ -61,6 +61,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# NOTE: Streams: Ports have to be opened in the VPS firewall + VPS UFW and bound in the VPS Nginx compose file.
|
||||||
|
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
53 # DNS (Adguard Home)
|
53 # DNS (Adguard Home)
|
||||||
67 # DHCP
|
67 # DHCP
|
||||||
|
|||||||
54
system/services/fileflows-node.nix
Normal file
54
system/services/fileflows-node.nix
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
fileflowsVersion = "25.10";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
fileflows-node = {
|
||||||
|
image = "revenz/fileflows:${fileflowsVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
|
# DockerHub Credentials
|
||||||
|
username = "christoph.urlacher@protonmail.com";
|
||||||
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/home/christoph/Movies:/media/movies"
|
||||||
|
"/home/christoph/Shows:/media/tvshows"
|
||||||
|
|
||||||
|
"fileflows_temp:/temp"
|
||||||
|
|
||||||
|
"/var/run/docker.sock:/var/run/docker.socl:ro"
|
||||||
|
];
|
||||||
|
|
||||||
|
hostname = "Nixinator";
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "3000";
|
||||||
|
PGID = "3000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
|
||||||
|
FFNODE = "1";
|
||||||
|
ServerUrl = "https://fileflows.local.chriphost.de";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--privileged"
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
# "--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user