Désactivation Lidarr
This commit is contained in:
parent
e8c6fd7535
commit
f944ef80d7
@ -1,5 +0,0 @@
|
||||
self: super:
|
||||
|
||||
{
|
||||
lidarr = super.callPackage ../pkgs/lidarr { };
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
{ stdenv, fetchurl, mono58, sqlite, curl, libmediainfo, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lidarr-${version}";
|
||||
version = "0.3.0.430";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.develop.${version}.linux.tar.gz";
|
||||
sha256 = "1syj5j2qn33k1q76lbifnvbp3q6qix7lzpxpnhvikiw91h8116zd";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
{ 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 = {};
|
||||
}
|
@ -38,7 +38,6 @@
|
||||
# $ nix-env -qaP | grep wget
|
||||
nixpkgs.overlays = [
|
||||
(import ../../overlays/riot-web.nix)
|
||||
(import ../../overlays/lidarr.nix)
|
||||
(import ../../overlays/sudo.nix)
|
||||
(import ../../overlays/neovim.nix)
|
||||
(import ../../overlays/site-max.nix)
|
||||
|
@ -22,7 +22,6 @@ in
|
||||
imports = [
|
||||
../../services/haproxy-acme.nix
|
||||
../../services/mail-server.nix
|
||||
../../services/lidarr.nix
|
||||
../../services/site-musique.nix
|
||||
../../services/site-max.nix
|
||||
];
|
||||
@ -40,7 +39,6 @@ in
|
||||
"emby.${domaine}" = { ip = "127.0.0.1"; port = 8096; auth = false; };
|
||||
"radarr.${domaine}" = { ip = "127.0.0.1"; port = 7878; auth = true; extraAcls = "acl API url_beg /api\n"; aclBool = "!AUTH_OK !API"; };
|
||||
"sonarr.${domaine}" = { ip = "127.0.0.1"; port = 8989; auth = true; extraAcls = "acl API url_beg /api\n"; aclBool = "!AUTH_OK !API"; };
|
||||
"lidarr.${domaine}" = { ip = "127.0.0.1"; port = 8686; auth = true; extraAcls = "acl API url_beg /api\n"; aclBool = "!AUTH_OK !API"; };
|
||||
"transmission.${domaine}" = { ip = "127.0.0.1"; port = 9091; auth = true; };
|
||||
"syncthing.${domaine}" = { ip = "127.0.0.1"; port = 8384; auth = true; };
|
||||
"jackett.${domaine}" = { ip = "127.0.0.1"; port = 9117; auth = true; };
|
||||
|
@ -37,6 +37,6 @@
|
||||
users.extraGroups.medias =
|
||||
{
|
||||
gid = 498;
|
||||
members = [ "slimserver" "radarr" "sonarr" "emby" "transmission" "lidarr" ];
|
||||
members = [ "slimserver" "radarr" "sonarr" "emby" "transmission" ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user