1

Update container configs

This commit is contained in:
2023-07-09 12:07:12 +02:00
parent 5e2db6fd34
commit d437ac0eb0

View File

@ -14,6 +14,9 @@ with mylib.modules; let
in { in {
options.modules.containers = import ./options.nix {inherit lib mylib;}; options.modules.containers = import ./options.nix {inherit lib mylib;};
# TODO: These need config options exposed through the module,
# e.g. to set paths/volumes/binds differently per system...
config = mkIf cfg.enable rec { config = mkIf cfg.enable rec {
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
# Home Automation # Home Automation
@ -56,9 +59,9 @@ in {
vols = [ vols = [
"jellyfin-cache:/cache:Z" "jellyfin-cache:/cache:Z"
"jellyfin-config:/config:Z" "jellyfin-config:/config:Z"
"/home/christoph/Videos/Video:/media/Video" "/home/christoph/HDD1/Video:/media/Video"
"/home/christoph/Videos/Picture:/media/Picture" "/home/christoph/HDD2/Video:/media/Video2"
"/home/christoph/GameHDD/Video:/media/Video2" "/home/christoph/HDD2/Picture:/media/Picture"
]; ];
}); });
@ -68,7 +71,8 @@ in {
vols = [ vols = [
"fileflows-cache:/temp:Z" "fileflows-cache:/temp:Z"
"fileflows-data:/app/Data:Z" "fileflows-data:/app/Data:Z"
"/home/christoph/Videos/Video:/media" "/home/christoph/HDD1/Video:/media"
"/home/christoph/HDD2/Video:/media"
]; ];
}); });
@ -78,8 +82,8 @@ in {
id-ports = [8989]; id-ports = [8989];
vols = [ vols = [
"sonarr-config:/config:Z" "sonarr-config:/config:Z"
"/home/christoph/Videos/Shows:/tv" "/home/christoph/HDD2/Shows:/tv"
"/home/christoph/Videos/SabNzbd:/downloads" "/home/christoph/HDD2/SabNzbd:/downloads"
]; ];
netns = "wg0-de-115"; netns = "wg0-de-115";
netdns = "10.2.0.1"; netdns = "10.2.0.1";
@ -90,8 +94,8 @@ in {
id-ports = [7878]; id-ports = [7878];
vols = [ vols = [
"radarr-config:/config:Z" "radarr-config:/config:Z"
"/home/christoph/Videos/Movies:/movies" "/home/christoph/HDD2/Movies:/movies"
"/home/christoph/Videos/SabNzbd:/downloads" "/home/christoph/HDD2/SabNzbd:/downloads"
]; ];
netns = "wg0-de-115"; netns = "wg0-de-115";
netdns = "10.2.0.1"; netdns = "10.2.0.1";
@ -102,7 +106,7 @@ in {
id-ports = [5076]; id-ports = [5076];
vols = [ vols = [
"hydra-config:/config:Z" "hydra-config:/config:Z"
"/home/christoph/Videos/SabNzbd:/downloads" "/home/christoph/HDD2/SabNzbd:/downloads"
]; ];
netns = "wg0-de-115"; netns = "wg0-de-115";
netdns = "10.2.0.1"; netdns = "10.2.0.1";
@ -113,8 +117,8 @@ in {
id-ports = [8080]; id-ports = [8080];
vols = [ vols = [
"sabnzbd-config:/config:Z" "sabnzbd-config:/config:Z"
"/home/christoph/Videos/SabNzbd:/downloads" "/home/christoph/HDD2/SabNzbd:/downloads"
"/home/christoph/Videos/.sabnzbd:/incomplete-downloads" "/home/christoph/HDD2/.sabnzbd:/incomplete-downloads"
]; ];
netns = "wg0-de-115"; netns = "wg0-de-115";
netdns = "10.2.0.1"; netdns = "10.2.0.1";