add lidarr
This commit is contained in:
parent
af3a5e2b7a
commit
a2511aa708
6 changed files with 63 additions and 13 deletions
|
@ -5,7 +5,9 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
imports = [
|
||||
./lidarr.nix
|
||||
];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
|
@ -20,6 +22,11 @@
|
|||
|
||||
networking.firewall.allowedTCPPorts = [ 5055 ];
|
||||
|
||||
fileSystems."/mnt/storage" = {
|
||||
device = "storage:/mnt/storage";
|
||||
fsType = "nfs";
|
||||
};
|
||||
|
||||
virtualisation.podman.enable = true;
|
||||
# TODO: Write NixOS package https://github.com/NixOS/nixpkgs/issues/135885
|
||||
virtualisation.oci-containers = {
|
||||
|
|
30
nixos/hosts/hades/overseerr/lidarr.nix
Normal file
30
nixos/hosts/hades/overseerr/lidarr.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ config, ... }:
|
||||
let vs = config.vault-secrets.secrets;
|
||||
in {
|
||||
networking.firewall.allowedTCPPorts = [ 8686 ];
|
||||
|
||||
vault-secrets.secrets.lidarr = {
|
||||
quoteEnvironmentValues = false; # Needed for docker
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers.lidarr = {
|
||||
image = "randomninjaatk/lidarr-extended:latest";
|
||||
extraOptions = [ "--pull=newer" ];
|
||||
environment = {
|
||||
TZ = "Europe/Amsterdam";
|
||||
dlClientSource = "deezer";
|
||||
enableVideoScript = "false";
|
||||
};
|
||||
environmentFiles = [
|
||||
# This file defines arlToken
|
||||
"${vs.lidarr}/environment"
|
||||
];
|
||||
ports = [ "8686:8686" ];
|
||||
volumes = [
|
||||
"/var/lib/lidarr/config:/config"
|
||||
"/var/lib/lidarr/downloads:/downloads-lidarr-extended"
|
||||
"/mnt/storage/plex/Music:/music"
|
||||
"/mnt/storage/plex/MusicVideos:/music-videos"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -11,6 +11,7 @@
|
|||
initrd = {
|
||||
kernelModules = [ "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ];
|
||||
};
|
||||
loader.systemd-boot.configurationLimit = 5;
|
||||
};
|
||||
|
||||
fileSystems."/".options = [ "compress=zstd" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue