mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 12:09:46 +01:00
20 lines
463 B
Nix
20 lines
463 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
services.mpd.enable = true;
|
||
|
|
||
|
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}
|
||
|
'';
|
||
|
}
|