Compare commits
3 commits
840fca4b9c
...
b20b23ac60
Author | SHA1 | Date | |
---|---|---|---|
b20b23ac60 | |||
f944ef80d7 | |||
e8c6fd7535 |
8 changed files with 7 additions and 130 deletions
|
@ -1,5 +0,0 @@
|
||||||
self: super:
|
|
||||||
|
|
||||||
{
|
|
||||||
lidarr = super.callPackage ../pkgs/lidarr { };
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
self: super:
|
|
||||||
|
|
||||||
{
|
|
||||||
organizr = super.callPackage ../pkgs/organizr { };
|
|
||||||
}
|
|
|
@ -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,26 +0,0 @@
|
||||||
{ stdenv, fetchFromGitHub }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "organizr-${version}";
|
|
||||||
version = "1.75";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "causefx";
|
|
||||||
repo = "Organizr";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "13h6cgqq3gyg5d3ikj7k85igpg6al7y9xdsxammkr8y5dzfbkm36";
|
|
||||||
};
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/
|
|
||||||
cp -R . $out/
|
|
||||||
ln -s /var/lib/organizr/config.php $out/config/config.php
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Organizr dashboard";
|
|
||||||
homepage = https://github.com/causefx/Organizr;
|
|
||||||
license = stdenv.lib.licenses.gpl3;
|
|
||||||
platforms = stdenv.lib.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,8 +38,6 @@
|
||||||
# $ nix-env -qaP | grep wget
|
# $ nix-env -qaP | grep wget
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ../../overlays/riot-web.nix)
|
(import ../../overlays/riot-web.nix)
|
||||||
(import ../../overlays/lidarr.nix)
|
|
||||||
(import ../../overlays/organizr.nix)
|
|
||||||
(import ../../overlays/sudo.nix)
|
(import ../../overlays/sudo.nix)
|
||||||
(import ../../overlays/neovim.nix)
|
(import ../../overlays/neovim.nix)
|
||||||
(import ../../overlays/site-max.nix)
|
(import ../../overlays/site-max.nix)
|
||||||
|
|
|
@ -6,7 +6,6 @@ let
|
||||||
domaine = "nyanlout.re";
|
domaine = "nyanlout.re";
|
||||||
|
|
||||||
riot_port = 52345;
|
riot_port = 52345;
|
||||||
organizr_port = 52346;
|
|
||||||
pgmanage_port = 52347;
|
pgmanage_port = 52347;
|
||||||
max_port = 52348;
|
max_port = 52348;
|
||||||
musique_port = 52349;
|
musique_port = 52349;
|
||||||
|
@ -23,7 +22,6 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
../../services/haproxy-acme.nix
|
../../services/haproxy-acme.nix
|
||||||
../../services/mail-server.nix
|
../../services/mail-server.nix
|
||||||
../../services/lidarr.nix
|
|
||||||
../../services/site-musique.nix
|
../../services/site-musique.nix
|
||||||
../../services/site-max.nix
|
../../services/site-max.nix
|
||||||
];
|
];
|
||||||
|
@ -37,18 +35,16 @@ in
|
||||||
services.haproxy-acme.enable = true;
|
services.haproxy-acme.enable = true;
|
||||||
services.haproxy-acme.domaine = domaine;
|
services.haproxy-acme.domaine = domaine;
|
||||||
services.haproxy-acme.services = {
|
services.haproxy-acme.services = {
|
||||||
"grafana.${domaine}" = { ip = "127.0.0.1"; port = 3000; auth = false; };
|
"grafana.${domaine}" = { ip = "127.0.0.1"; port = 3000; auth = true; };
|
||||||
"emby.${domaine}" = { ip = "127.0.0.1"; port = 8096; auth = false; };
|
"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"; };
|
"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"; };
|
"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; };
|
"transmission.${domaine}" = { ip = "127.0.0.1"; port = 9091; auth = true; };
|
||||||
"syncthing.${domaine}" = { ip = "127.0.0.1"; port = 8384; auth = true; };
|
"syncthing.${domaine}" = { ip = "127.0.0.1"; port = 8384; auth = true; };
|
||||||
"jackett.${domaine}" = { ip = "127.0.0.1"; port = 9117; auth = true; };
|
"jackett.${domaine}" = { ip = "127.0.0.1"; port = 9117; auth = true; };
|
||||||
"searx.${domaine}" = { ip = "127.0.0.1"; port = 8888; auth = false; };
|
"searx.${domaine}" = { ip = "127.0.0.1"; port = 8888; auth = false; };
|
||||||
"riot.${domaine}" = { ip = "127.0.0.1"; port = riot_port; auth = false; };
|
"riot.${domaine}" = { ip = "127.0.0.1"; port = riot_port; auth = false; };
|
||||||
"matrix.${domaine}" = { ip = "127.0.0.1"; port = 8008; auth = false; };
|
"matrix.${domaine}" = { ip = "127.0.0.1"; port = 8008; auth = false; };
|
||||||
"organizr.${domaine}" = { ip = "127.0.0.1"; port = organizr_port; auth = true; };
|
|
||||||
"pgmanage.${domaine}" = { ip = "127.0.0.1"; port = pgmanage_port; auth = true; };
|
"pgmanage.${domaine}" = { ip = "127.0.0.1"; port = pgmanage_port; auth = true; };
|
||||||
"gitea.${domaine}" = { ip = "127.0.0.1"; port = 3001; auth = false; };
|
"gitea.${domaine}" = { ip = "127.0.0.1"; port = 3001; auth = false; };
|
||||||
};
|
};
|
||||||
|
@ -97,6 +93,11 @@ in
|
||||||
SMTP_ENABLED = "true";
|
SMTP_ENABLED = "true";
|
||||||
SMTP_FROM_ADDRESS = "grafana@${domaine}";
|
SMTP_FROM_ADDRESS = "grafana@${domaine}";
|
||||||
SMTP_SKIP_VERIFY = "true";
|
SMTP_SKIP_VERIFY = "true";
|
||||||
|
AUTH_DISABLE_LOGIN_FORM = "true";
|
||||||
|
AUTH_DISABLE_SIGNOUT_MENU = "true";
|
||||||
|
AUTH_ANONYMOUS_ENABLED = "true";
|
||||||
|
AUTH_ANONYMOUS_ORG_ROLE = "Admin";
|
||||||
|
AUTH_BASIC_ENABLED = "false";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.emby.enable = true;
|
services.emby.enable = true;
|
||||||
|
@ -140,39 +141,7 @@ in
|
||||||
listen = [ { addr = "127.0.0.1"; port = riot_port; } ];
|
listen = [ { addr = "127.0.0.1"; port = riot_port; } ];
|
||||||
locations = { "/" = { root = pkgs.riot-web; }; };
|
locations = { "/" = { root = pkgs.riot-web; }; };
|
||||||
};
|
};
|
||||||
"organizr" = {
|
|
||||||
listen = [ { addr = "127.0.0.1"; port = organizr_port; } ];
|
|
||||||
locations."/" = {
|
|
||||||
root = pkgs.organizr;
|
|
||||||
index = "index.php";
|
|
||||||
extraConfig = ''
|
|
||||||
location ~* \.php$ {
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
fastcgi_pass unix:/run/phpfpm/nginx;
|
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
|
||||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.phpfpm.poolConfigs.mypool = ''
|
|
||||||
listen = /run/phpfpm/nginx
|
|
||||||
listen.owner = nginx
|
|
||||||
listen.group = nginx
|
|
||||||
listen.mode = 0660
|
|
||||||
user = nginx
|
|
||||||
pm = dynamic
|
|
||||||
pm.max_children = 75
|
|
||||||
pm.start_servers = 2
|
|
||||||
pm.min_spare_servers = 1
|
|
||||||
pm.max_spare_servers = 20
|
|
||||||
pm.max_requests = 500
|
|
||||||
php_admin_value[error_log] = 'stderr'
|
|
||||||
php_admin_flag[log_errors] = on
|
|
||||||
catch_workers_output = yes
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.postgresql.enable = true;
|
services.postgresql.enable = true;
|
||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
|
|
|
@ -37,6 +37,6 @@
|
||||||
users.extraGroups.medias =
|
users.extraGroups.medias =
|
||||||
{
|
{
|
||||||
gid = 498;
|
gid = 498;
|
||||||
members = [ "slimserver" "radarr" "sonarr" "emby" "transmission" "lidarr" ];
|
members = [ "slimserver" "radarr" "sonarr" "emby" "transmission" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue