refactor containers

This commit is contained in:
♥ Minnie ♥ 2024-01-21 21:00:41 +08:00
parent 8a999ac546
commit a48829bbe6
4 changed files with 40 additions and 27 deletions

View file

@ -21,4 +21,12 @@
];
};
};
environment.persistence."/persist" = {
directories = [
"/var/lib/homarr/configs"
"/var/lib/homarr/icons"
"/var/lib/homarr/data"
];
};
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
imports = [
./dashboard.nix
./multimedia.nix
];
virtualisation.oci-containers.backend = "docker";
}

View file

@ -1,26 +0,0 @@
{ config, inputs, ... }:
{
age.secrets.microbin = {
# Environment variables for microbin
file = inputs.self + /secrets/microbin.age;
owner = "root";
group = "root";
};
virtualisation.oci-containers.containers = {
microbin = {
autoStart = true;
image = "danielszabo99/microbin:2.0.4";
ports = [
"8181:8080/tcp"
];
volumes = [
"/var/lib/microbin:/app/microbin_data:rw"
];
environmentFiles = [
config.age.secrets.microbin.path
];
};
};
}

View file

@ -25,6 +25,7 @@
"--network=media-stack"
];
};
# PVR for Usenet and BitTorrent users
sonarr = {
autoStart = true;
@ -42,6 +43,7 @@
"--network=media-stack"
];
};
# Movie collection manager for Usenet and BitTorrent users
radarr = {
autoStart = true;
@ -59,6 +61,7 @@
"--network=media-stack"
];
};
# # Music collection manager for Usenet and BitTorrent users
lidarr = {
autoStart = true;
@ -76,6 +79,7 @@
"--network=media-stack"
];
};
# Indexer manager/proxy built on the popular arr .net/reactjs base stack to integrate with your various PVR apps.
prowlarr = {
autoStart = true;
@ -91,6 +95,7 @@
"--network=media-stack"
];
};
# Automatically synchronize recommended settings from the TRaSH guides to your Sonarr/Radarr instances
recyclarr = {
autoStart = true;
@ -102,6 +107,7 @@
"--network=media-stack"
];
};
# # Open-source software alternative to µTorrent
qbittorrent = {
autoStart = true;
@ -119,6 +125,8 @@
"--network=media-stack"
];
};
# Request management
jellyseerr = {
autoStart = true;
image = "ghcr.io/hotio/jellyseerr";
@ -133,6 +141,19 @@
];
};
};
virtualisation.oci-containers.backend = "docker";
environment.persistence."/persist" = {
directories = [
"/var/lib/jellyfin/config"
"/var/lib/jellyfin/cache"
"/var/lib/sonarr"
"/var/lib/radarr"
"/var/lib/lidarr"
"/var/lib/prowlarr"
"/var/lib/recyclarr"
"/var/lib/qbittorrent"
"/var/lib/jellyseerr"
];
};
}