blob: 17b22ec6b0f8c08eee79ba975dea9183cbc69af3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
config,
options,
lib,
pkgs,
...
}: let
mpdConfig = config.modules.desktop.apps.mpd;
in
{
options.modules.desktop.apps.mpd = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
config = lib.mkIf (mpdConfig.enable) {
home.packages = [
pkgs.mpc-cli
];
services.mpd = {
enable = true;
musicDirectory = "/home/jon/mus";
extraConfig = ''
audio_output {
type "pipewire"
name "Pipewire Output"
}
'';
user = "jon";
};
systemd.services.mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/1000";
};
home.manager.programs.ncmpcpp = {
enable = true;
mpdMusicDir = /home/jon/mus;
};
};
}
|