2023-01-10 09:35:00 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2023-08-08 10:19:01 +00:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
extraArgs = [ "--verbose" ];
|
|
|
|
};
|
|
|
|
|
2023-01-10 09:35:00 +00:00
|
|
|
xdg.userDirs.enable = true;
|
|
|
|
|
|
|
|
home.stateVersion = "22.11";
|
|
|
|
|
|
|
|
test.stubs.mpd = { };
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/mpd.service)
|
|
|
|
assertFileContent "$serviceFile" ${./basic-configuration.service}
|
|
|
|
|
|
|
|
confFile=$(grep -o \
|
|
|
|
'/nix/store/.*-mpd.conf' \
|
|
|
|
$TESTED/home-files/.config/systemd/user/mpd.service)
|
|
|
|
assertFileContent "$confFile" ${./xdg-music-dir.conf}
|
|
|
|
'';
|
|
|
|
}
|