refactor containers
This commit is contained in:
parent
8a999ac546
commit
a48829bbe6
|
@ -21,4 +21,12 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
directories = [
|
||||
"/var/lib/homarr/configs"
|
||||
"/var/lib/homarr/icons"
|
||||
"/var/lib/homarr/data"
|
||||
];
|
||||
};
|
||||
}
|
10
nixos/viridian/containers/default.nix
Normal file
10
nixos/viridian/containers/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./dashboard.nix
|
||||
./multimedia.nix
|
||||
];
|
||||
|
||||
virtualisation.oci-containers.backend = "docker";
|
||||
}
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue