mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 14:26:30 +02:00
25 lines
527 B
Nix
25 lines
527 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
services.mpd.enable = true;
|
||
|
|
||
|
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"'
|
||
|
'';
|
||
|
}
|