mpd satellite setup

feat/kile-v2
Ricard Illa 2022-02-09 20:16:01 +01:00
parent d2af65b154
commit ebf773758a
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 13 additions and 7 deletions

View File

@ -1,12 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let musicDir = "${config.home.homeDirectory}/Music"; let musicDir = "https://dav.monotremata.xyz/music";
in { in {
imports = [ ./common.nix ]; imports = [ ./common.nix ];
home.packages = [ pkgs.mpc_cli ]; home.packages = [ pkgs.mpc_cli ];
services.mpd = { services.mpd = {
enable = true; enable = true;
musicDirectory = musicDir; musicDirectory = musicDir;
dbFile = null;
network = { network = {
listenAddress = "any"; listenAddress = "any";
port = 6600; port = 6600;
@ -22,6 +23,11 @@ in {
path "/tmp/mpd.fifo" path "/tmp/mpd.fifo"
format "44100:16:2" format "44100:16:2"
} }
database {
plugin "proxy"
host "narwhal"
port "6600"
}
''; '';
}; };
} }

View File

@ -25,12 +25,12 @@ in {
fsType = "vfat"; fsType = "vfat";
}; };
"/home/rilla/Music" = { #"/home/rilla/Music" = {
device = "narwhal:/music"; # device = "narwhal:/music";
fsType = "nfs"; # fsType = "nfs";
options = # options =
[ "nfsvers=4" "x-systemd.automount" "x-systemd.idle-timeout=1min" ]; # [ "nfsvers=4" "x-systemd.automount" "x-systemd.idle-timeout=1min" ];
}; #};
"/home/rilla/calibre" = { "/home/rilla/calibre" = {
device = "narwhal:/calibre"; device = "narwhal:/calibre";