2022-09-15 20:19:00 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2023-03-05 08:41:34 +00:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
extraArgs = [ "--verbose" ];
|
|
|
|
};
|
2022-09-15 20:19:00 +00:00
|
|
|
|
|
|
|
home.stateVersion = "18.09";
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
assertFileContains \
|
|
|
|
"$confFile" \
|
|
|
|
'music_directory "/home/hm-user/music"'
|
|
|
|
'';
|
|
|
|
}
|