diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-17 10:29:06 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-17 10:32:58 +0100 |
commit | a4b85b9601be68c66d3bf33bf05c1ef1c0032526 (patch) | |
tree | e36e53220dc1d36bf77e779d0f1e5ebfa90d524e /flake | |
parent | fix(legacy/wms/river): Ensure that `mpc` is available to river (diff) | |
download | nixos-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.nix | 15 |
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; |