mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
3c18113bd7
Allow passing arguments to the MPD command line. Currently the only interesting one is `--verbose`.
25 lines
579 B
Nix
25 lines
579 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
services.mpd = {
|
|
enable = true;
|
|
musicDirectory = "/my/music/dir";
|
|
extraArgs = [ "--verbose" ];
|
|
};
|
|
|
|
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" ${./basic-configuration.conf}
|
|
'';
|
|
}
|