Ajout Lidarr
This commit is contained in:
parent
4ac696f617
commit
2787e12243
@ -38,6 +38,7 @@
|
||||
# $ nix-env -qaP | grep wget
|
||||
nixpkgs.overlays = [
|
||||
(import ./overlays/riot-web.nix)
|
||||
(import ./overlays/lidarr.nix)
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
|
5
overlays/lidarr.nix
Normal file
5
overlays/lidarr.nix
Normal file
@ -0,0 +1,5 @@
|
||||
self: super:
|
||||
|
||||
{
|
||||
lidarr = super.callPackage ../pkgs/lidarr { };
|
||||
}
|
30
pkgs/lidarr/default.nix
Normal file
30
pkgs/lidarr/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchurl, mono58, sqlite, curl, libmediainfo, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lidarr-${version}";
|
||||
version = "0.2.0.371";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.develop.${version}.linux.tar.gz";
|
||||
sha256 = "0lpyp9pj1cwlls4qkr5933k4ymhigp1f621clwrnxrr6hc2yhg90";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,share/${name}}
|
||||
cp -r * $out/share/${name}/.
|
||||
makeWrapper "${mono58}/bin/mono" $out/bin/lidarr \
|
||||
--add-flags "$out/share/${name}/Lidarr.exe" \
|
||||
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [
|
||||
curl sqlite libmediainfo ]}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Usenet/BitTorrent music downloader.";
|
||||
homepage = http://lidarr.audio/;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -14,6 +14,7 @@ in
|
||||
imports = [
|
||||
./services/haproxy-acme.nix
|
||||
./services/mail-server.nix
|
||||
./services/lidarr.nix
|
||||
];
|
||||
|
||||
services.haproxy-acme.enable = true;
|
||||
@ -23,6 +24,7 @@ in
|
||||
emby = { ip = "127.0.0.1"; port = 8096; auth = false; };
|
||||
radarr = { ip = "127.0.0.1"; port = 7878; auth = false; };
|
||||
sonarr = { ip = "127.0.0.1"; port = 8989; auth = false; };
|
||||
lidarr = { ip = "127.0.0.1"; port = 8686; auth = false; };
|
||||
transmission = { ip = "127.0.0.1"; port = 9091; auth = true; };
|
||||
syncthing = { ip = "127.0.0.1"; port = 8384; auth = true; };
|
||||
jackett = { ip = "127.0.0.1"; port = 9117; auth = true; };
|
||||
|
24
services/lidarr.nix
Normal file
24
services/lidarr.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
systemd.services.lidarr = {
|
||||
description = "Lidarr";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
User = "lidarr";
|
||||
Group = "lidarr";
|
||||
ExecStart = "${pkgs.lidarr}/bin/lidarr";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
users.extraUsers.lidarr = {
|
||||
home = "/var/lib/lidarr";
|
||||
createHome = true;
|
||||
group = "lidarr";
|
||||
isSystemUser = true;
|
||||
};
|
||||
|
||||
users.extraGroups.lidarr = {};
|
||||
}
|
Loading…
Reference in New Issue
Block a user