about summary refs log tree commit diff stats
path: root/flake/nixosConfigurations
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-17 10:29:06 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-17 10:32:58 +0100
commita4b85b9601be68c66d3bf33bf05c1ef1c0032526 (patch)
treee36e53220dc1d36bf77e779d0f1e5ebfa90d524e /flake/nixosConfigurations
parentfix(legacy/wms/river): Ensure that `mpc` is available to river (diff)
downloadnixos-config-a4b85b9601be68c66d3bf33bf05c1ef1c0032526.tar.gz
nixos-config-a4b85b9601be68c66d3bf33bf05c1ef1c0032526.zip
refactor(legacy/conf/mpd): Move to a unified `mpd` by-name module
Diffstat (limited to '')
-rw-r--r--flake/nixosConfigurations/common.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/flake/nixosConfigurations/common.nix b/flake/nixosConfigurations/common.nix
index d4660ef7..f2df9957 100644
--- a/flake/nixosConfigurations/common.nix
+++ b/flake/nixosConfigurations/common.nix
@@ -35,6 +35,21 @@
         user = "soispha";
       };
       fwupd.enable = true;
+      mpd = {
+        enable = true;
+        directories = let
+          data = "${config.home-manager.users.soispha.xdg.dataHome}/mpd";
+        in {
+          inherit data;
+          playlists = "${data}/playlists";
+          runtime = "/run/user/${builtins.toString config.users.users.soispha.uid}/mpd";
+          music = config.home-manager.users.soispha.programs.beets.settings.directory;
+        };
+        mpc = {
+          enable = true;
+          beetsPkg = config.home-manager.users.soispha.programs.beets.package;
+        };
+      };
       postgresql.enable = false;
       printing.enable = true;
       scanning.enable = true;