ma music: cleanup, use navidrome

This commit is contained in:
makefu 2021-12-10 08:48:36 +01:00
parent 2f70dd3a67
commit 023a9749fc
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 12 additions and 10 deletions

View File

@ -94,7 +94,7 @@ in {
<stockholm/makefu/2configs/virtualisation/docker.nix> <stockholm/makefu/2configs/virtualisation/docker.nix>
<stockholm/makefu/2configs/bluetooth-mpd.nix> <stockholm/makefu/2configs/bluetooth-mpd.nix>
<stockholm/makefu/2configs/home/airsonic.nix> <stockholm/makefu/2configs/home/music.nix>
<stockholm/makefu/2configs/home/photoprism.nix> <stockholm/makefu/2configs/home/photoprism.nix>
# <stockholm/makefu/2configs/home/metube.nix> # <stockholm/makefu/2configs/home/metube.nix>
<stockholm/makefu/2configs/home/ham> <stockholm/makefu/2configs/home/ham>

View File

@ -1,19 +1,21 @@
{ config, ... }: { config, ... }:
let let
internal-ip = "192.168.111.11"; internal-ip = "192.168.111.11";
port = 4040; port = 4533;
in in
{ {
# networking.firewall.allowedTCPPorts = [ 4040 ]; services.navidrome.enable = true;
services.airsonic = { services.navidrome.settings = {
enable = true; MusicFolder = "/media/cryptX/music";
listenAddress = "0.0.0.0"; Address = "0.0.0.0";
inherit port;
}; };
state = [ config.services.airsonic.home ];
services.nginx.virtualHosts."airsonic" = { state = [ "/var/lib/navidrome" ];
# networking.firewall.allowedTCPPorts = [ 4040 ];
# state = [ config.services.airsonic.home ];
services.nginx.virtualHosts."navidrome" = {
serverAliases = [ serverAliases = [
"airsonic.lan" "navidrome.lan"
"music" "music.lan" "music" "music.lan"
"musik" "musik.lan" "musik" "musik.lan"
]; ];