From a4b85b9601be68c66d3bf33bf05c1ef1c0032526 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 17 Nov 2024 10:29:06 +0100 Subject: refactor(legacy/conf/mpd): Move to a unified `mpd` by-name module --- flake/nixosConfigurations/common.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'flake') 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; -- cgit 1.4.1