From f014608281e3df3aceb87fcb8986df2799ea2b2e Mon Sep 17 00:00:00 2001 From: roxwize Date: Tue, 31 Dec 2024 04:36:24 -0500 Subject: [PATCH] ~ --- nixos/home/yambar.nix | 1 + nixos/hosts/base.nix | 12 +++++++++++- nixos/hosts/ioides/configuration.nix | 5 ++++- 3 files changed, 16 insertions(+), 2 deletions(-) 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 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??? 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 = {