tsuki/navidrome: init
This commit is contained in:
parent
c2026eefeb
commit
b5874e2bcd
|
@ -15,7 +15,7 @@
|
||||||
./services/kanidm.nix
|
./services/kanidm.nix
|
||||||
./services/matrix
|
./services/matrix
|
||||||
./services/minecraft
|
./services/minecraft
|
||||||
./services/nextcloud.nix
|
./services/navidrome.nix
|
||||||
./services/nginx
|
./services/nginx
|
||||||
./services/osuchan.nix
|
./services/osuchan.nix
|
||||||
./services/pgadmin.nix
|
./services/pgadmin.nix
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ config, pkgs, ... }: let
|
||||||
|
cfg = config.services.navidrome;
|
||||||
|
in {
|
||||||
|
services.navidrome = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
Address = "127.0.0.1";
|
||||||
|
Port = 4533;
|
||||||
|
MusicFolder = "/data2/media/music";
|
||||||
|
Prometheus.Enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
local.socketActivation.navidrome = {
|
||||||
|
enable = true;
|
||||||
|
originalSocketAddress = "${cfg.settings.Address}:${toString cfg.settings.Port}";
|
||||||
|
newSocketAddress = "/run/navidrome.sock";
|
||||||
|
privateNamespace = false;
|
||||||
|
};
|
||||||
|
}
|
|
@ -39,6 +39,7 @@
|
||||||
upstreams = let
|
upstreams = let
|
||||||
inherit (secrets) ips ports;
|
inherit (secrets) ips ports;
|
||||||
srv = config.services;
|
srv = config.services;
|
||||||
|
sa = config.local.socketActivation;
|
||||||
in {
|
in {
|
||||||
"atuin".servers."localhost:${s srv.atuin.port}" = { };
|
"atuin".servers."localhost:${s srv.atuin.port}" = { };
|
||||||
"dynmap".servers."localhost:${s ports.minecraft.dynmap}" = { };
|
"dynmap".servers."localhost:${s ports.minecraft.dynmap}" = { };
|
||||||
|
@ -51,6 +52,7 @@
|
||||||
"invidious".servers."localhost:${s config.services.invidious.port}" = { };
|
"invidious".servers."localhost:${s config.services.invidious.port}" = { };
|
||||||
"jupyter".servers."unix:/run/jupyter/jupyter.sock" = { };
|
"jupyter".servers."unix:/run/jupyter/jupyter.sock" = { };
|
||||||
"kanidm".servers."localhost:8300" = { };
|
"kanidm".servers."localhost:8300" = { };
|
||||||
|
"navidrome".servers."unix:${sa.navidrome.newSocketAddress}" = { };
|
||||||
"osuchan".servers."localhost:${s ports.osuchan}" = { };
|
"osuchan".servers."localhost:${s ports.osuchan}" = { };
|
||||||
"pgadmin".servers."unix:${srv.uwsgi.instance.vassals.pgadmin.socket}" = { };
|
"pgadmin".servers."unix:${srv.uwsgi.instance.vassals.pgadmin.socket}" = { };
|
||||||
"plex".servers."localhost:${s ports.plex}" = { };
|
"plex".servers."localhost:${s ports.plex}" = { };
|
||||||
|
@ -157,6 +159,7 @@
|
||||||
(proxy ["map"] "http://dynmap" {})
|
(proxy ["map"] "http://dynmap" {})
|
||||||
(proxy ["osu"] "http://osuchan" {})
|
(proxy ["osu"] "http://osuchan" {})
|
||||||
(proxy ["plex"] "http://plex" {})
|
(proxy ["plex"] "http://plex" {})
|
||||||
|
(proxy ["mus"] "http://navidrome" enableWebsockets)
|
||||||
(proxy ["px1"] "https://proxmox" enableWebsockets)
|
(proxy ["px1"] "https://proxmox" enableWebsockets)
|
||||||
(proxy ["py"] "http://jupyter" enableWebsockets)
|
(proxy ["py"] "http://jupyter" enableWebsockets)
|
||||||
(proxy ["vpn"] "http://headscale" enableWebsockets)
|
(proxy ["vpn"] "http://headscale" enableWebsockets)
|
||||||
|
|
Loading…
Reference in New Issue