2024-07-24 15:49:31 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.khepri) rwDataDir;
|
2024-02-28 22:22:14 -05:00
|
|
|
|
|
|
|
rwPath = rwDataDir + "/media/sabnzbd";
|
|
|
|
in {
|
2024-07-24 15:49:31 -04:00
|
|
|
khepri.compositions."sabnzbd".services."sabnzbd" = {
|
|
|
|
image = import ./images/sabnzbd.nix pkgs;
|
2024-02-28 22:22:14 -05:00
|
|
|
restart = "always";
|
|
|
|
|
2024-07-24 15:49:31 -04:00
|
|
|
extraHosts = ["lan.nelim.org=10.0.0.130"];
|
2024-02-28 22:22:14 -05:00
|
|
|
ports = ["8382:8082"];
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "America/New_York";
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [
|
|
|
|
"${rwPath}/data:/config"
|
|
|
|
"/data:/data"
|
|
|
|
];
|
|
|
|
|
2024-07-24 15:49:31 -04:00
|
|
|
cpus = 2;
|
2024-02-28 22:22:14 -05:00
|
|
|
};
|
|
|
|
}
|