fix containers

This commit is contained in:
veneficium 2025-12-21 17:11:54 +01:00
parent d309615737
commit 4be4bfe67c
2 changed files with 4 additions and 31 deletions

View file

@ -5,7 +5,7 @@
}:
{
options.settings.containers.lidarr = {
enable = lib.mkEnableOption "enable lidarr arion container";
enable = lib.mkEnableOption "enable lidarr container";
};
config = lib.mkIf config.settings.containers.lidarr.enable {
@ -33,34 +33,5 @@
services.lidarr.openFirewall = true;
};
};
# virtualisation.arion.projects.lidarr = {
# settings = {
# project.name = "lidarr";
# services.lidarr = {
# service.useHostStore = true;
# nixos.useSystemd = true;
# nixos.configuration =
# { lib, ... }:
# {
# boot.isContainer = true;
# boot.tmp.useTmpfs = true;
# networking.useDHCP = false;
# services.nscd.enable = false;
# system.nssModules = lib.mkForce [ ];
# services.lidarr.enable = true;
# services.lidarr.openFirewall = true;
# services.lidarr.dataDir = "/config";
# services.lidarr.user = "root";
# };
# service.ports = [ "8686:8686" ];
# service.volumes = [
# "/config/lidarr:/config"
# "/data:/data"
# ];
# };
# };
# };
};
}

View file

@ -23,11 +23,13 @@
];
service.volumes = [
"/config/qbittorrent:/config"
"/data/torrents:/torrents"
"/data/torrents:/data/torrents"
];
service.environment = {
WEBUI_PORT = 8080;
TORRENTING_PORT = 6881;
PUID = 0;
PGID = 0;
};
};
};