remove some unused services/refactor
This commit is contained in:
parent
7297d48f13
commit
253cdf8ede
17 changed files with 8 additions and 271 deletions
46
nixos/viridian/multimedia/lidarr/default.nix
Normal file
46
nixos/viridian/multimedia/lidarr/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{...}: let
|
||||
port = "8686";
|
||||
in {
|
||||
virtualisation.oci-containers.containers = {
|
||||
# # Music collection manager for Usenet and BitTorrent users
|
||||
lidarr = {
|
||||
autoStart = true;
|
||||
image = "ghcr.io/hotio/lidarr:release-2.4.3.4248";
|
||||
ports = [
|
||||
"${port}:8686/tcp" # WebUI
|
||||
];
|
||||
volumes = [
|
||||
# Media library
|
||||
"/srv/multimedia:/data:rw"
|
||||
# Container data
|
||||
"/srv/containers/lidarr:/config:rw"
|
||||
];
|
||||
environment = {
|
||||
PUID = "1000";
|
||||
PGID = "100";
|
||||
};
|
||||
extraOptions = [
|
||||
"--network=media-stack"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http.routers = {
|
||||
lidarr = {
|
||||
rule = "Host(`lidarr.kanto.dev`)";
|
||||
entryPoints = [
|
||||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"internal"
|
||||
];
|
||||
service = "lidarr";
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http.services = {
|
||||
lidarr.loadBalancer.servers = [
|
||||
{url = "http://127.0.0.1:${port}";}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue