36 lines
883 B
Nix
36 lines
883 B
Nix
|
|
{ config, ... }:
|
||
|
|
let
|
||
|
|
cfg = import /etc/nixos/modules/vars.nix;
|
||
|
|
crossseed_port = cfg.arrstack.crossseed.port;
|
||
|
|
#outpost_port = cfg.authentik.outpostPort;
|
||
|
|
#domain = "mc-fucker.cool";
|
||
|
|
in
|
||
|
|
{
|
||
|
|
|
||
|
|
virtualisation.oci-containers.containers.crossseed = {
|
||
|
|
image = "docker.io/crossseed/cross-seed";
|
||
|
|
cmd = [ "daemon" ];
|
||
|
|
environment = {
|
||
|
|
TZ = "Europe/Berlin";
|
||
|
|
PUID = toString config.users.users.arr.uid;
|
||
|
|
PGID = toString config.users.groups.arr.gid;
|
||
|
|
};
|
||
|
|
ports = [
|
||
|
|
"${crossseed_port}:${crossseed_port}"
|
||
|
|
];
|
||
|
|
volumes = [
|
||
|
|
"/var/lib/cross-seed:/config"
|
||
|
|
#"/mnt/mergerfs/media:/data"
|
||
|
|
"/var/lib/qbittorrent/qBittorrent/data/BT_backup:/torrents"
|
||
|
|
"/mnt/mergerfs/media/qbittorrent:/data/qbittorrent"
|
||
|
|
];
|
||
|
|
extraOptions = cfg.podman.extraOptions;
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
#services.nginx.virtualHosts = {
|
||
|
|
|
||
|
|
#};
|
||
|
|
}
|
||
|
|
# vim: set et ts=2 sw=2 ai:
|