diff --git a/nixos/home/yambar.nix b/nixos/home/yambar.nix index b99fd96..34829a6 100644 --- a/nixos/home/yambar.nix +++ b/nixos/home/yambar.nix @@ -12,6 +12,7 @@ left = [ { + # TODO: mpd <https://www.mankier.com/5/yambar-modules-mpd> label = { content.string.text = "god's in his heaven | all's right with the world"; }; diff --git a/nixos/hosts/base.nix b/nixos/hosts/base.nix index c5ba029..0075fc3 100644 --- a/nixos/hosts/base.nix +++ b/nixos/hosts/base.nix @@ -57,9 +57,19 @@ alsa.enable = true; pulse.enable = true; }; - # TODO + # Music directory is host-dependent + #? Using ALSA when we're using pipewire??? <https://nixos.wiki/wiki/MPD#PipeWire> mpd = { enable = true; + extraConfig = '' + audio_output { + type "alsa" + name "alsa" + mixer_type "hardware" + mixer_device "default" + mixer_control "PCM" + } + ''; }; # CUPS printing printing.enable = true; diff --git a/nixos/hosts/ioides/configuration.nix b/nixos/hosts/ioides/configuration.nix index f4e0f50..12d515c 100644 --- a/nixos/hosts/ioides/configuration.nix +++ b/nixos/hosts/ioides/configuration.nix @@ -27,7 +27,10 @@ networking.hostName = "ioides"; - services.xserver.videoDrivers = [ "nvidia" ]; + services = { + mpd.musicDirectory = "/mnt/world/music"; + xserver.videoDrivers = [ "nvidia" ]; + }; hardware.nvidia = { modesetting.enable = true; powerManagement = {