diff --git a/configuration.nix b/configuration.nix index c6bb936..0444101 100644 --- a/configuration.nix +++ b/configuration.nix @@ -208,6 +208,41 @@ in programs.ncmpcpp = { enable = true; + settings = { + mpd_music_dir = "~/media/Audio/playlist"; + mpd_host = "localhost"; + mpd_port = "6600"; + mpd_connection_timeout = "5"; + mpd_crossfade_time = "5"; + }; + }; + + services.mpd = { + enable = true; + extraConfig = '' + bind_to_address "127.0.0.1" + #bind_to_address "~/.mpd/socket" + music_directory "~/Music" + playlist_directory "~/.mpd/playlists" + db_file "~/.mpd/mpd.db" + log_file "~/.mpd/mpd.log" + pid_file "~/.mpd/mpd.pid" + state_file "~/.mpd/mpdstate" + audio_output { + + type "pulse" + name "pulse audio" + device "pulse" + mixer_type "hardware" + } + +audio_output { + type "fifo" + name "my_fifo" + path "/tmp/mpd.fifo" + format "44100:16:2" +} + ''; }; programs.bash = { @@ -920,6 +955,7 @@ valign = bottom killall zip ncmpcpp + mpd pulseaudio nerdfonts eza diff --git a/nixos-switch.log b/nixos-switch.log index 116051c..ed101af 100644 --- a/nixos-switch.log +++ b/nixos-switch.log @@ -1,24 +1,24 @@ building Nix... building the system configuration... -these 7 derivations will be built: - /nix/store/anxcmb94qhagalnrnbhmaqvjkipz5bgq-home-manager-path.drv - /nix/store/7hp1w1z0df5svk65fsh7cszvw0nf46dg-activation-script.drv - /nix/store/l474340c3ykmnykbziskjpqip2bp46is-home-manager-generation.drv - /nix/store/ddr19dvykyw6h8n85sywrc66xjpqi31b-unit-home-manager-deadvey.service.drv - /nix/store/avnc1g8drd0z3x31y3cx5nw7w5pwrm3g-system-units.drv - /nix/store/y3w2dly2qhwmq43bq0lzacd7cyfq890d-etc.drv - /nix/store/w1llx19d7j44zm0b9kn875wkx1qc9jqh-nixos-system-nixos-24.05.3999.c42fcfbdfeae.drv -building '/nix/store/anxcmb94qhagalnrnbhmaqvjkipz5bgq-home-manager-path.drv'... -created 1939 symlinks in user environment -building '/nix/store/7hp1w1z0df5svk65fsh7cszvw0nf46dg-activation-script.drv'... -building '/nix/store/l474340c3ykmnykbziskjpqip2bp46is-home-manager-generation.drv'... -building '/nix/store/ddr19dvykyw6h8n85sywrc66xjpqi31b-unit-home-manager-deadvey.service.drv'... -building '/nix/store/avnc1g8drd0z3x31y3cx5nw7w5pwrm3g-system-units.drv'... -building '/nix/store/y3w2dly2qhwmq43bq0lzacd7cyfq890d-etc.drv'... -building '/nix/store/w1llx19d7j44zm0b9kn875wkx1qc9jqh-nixos-system-nixos-24.05.3999.c42fcfbdfeae.drv'... -activating the configuration... -setting up /etc... -reloading user units for lightdm... -reloading user units for deadvey... -restarting sysinit-reactivation.target -restarting the following units: home-manager-deadvey.service +error: + … while calling the 'head' builtin + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1575:11: + + 1574| || pred here (elemAt values 1) (head values) then + 1575| head values + | ^ + 1576| else + + … while evaluating the attribute 'value' + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:809:9: + + 808| in warnDeprecation opt // + 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; + | ^ + 810| inherit (res.defsFinal') highestPrio; + + (stack trace truncated; use '--show-trace' to show the full trace) + + error: The option `home-manager.users.deadvey.services.mpd.musicDirectory' is used but not defined.