2022-03-04 00:43:40 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2022-09-15 22:19:00 +02:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
musicDirectory = "/my/music/dir";
|
2023-03-05 09:41:34 +01:00
|
|
|
extraArgs = [ "--verbose" ];
|
2022-09-15 22:19:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
home.stateVersion = "22.11";
|
2022-03-04 00:43:40 +01:00
|
|
|
|
|
|
|
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" ${./basic-configuration.conf}
|
|
|
|
'';
|
|
|
|
}
|