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

View File

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