mirror of
https://github.com/nix-community/home-manager
synced 2024-12-12 12:59:49 +01:00
23 lines
519 B
Nix
23 lines
519 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
services.mpd.enable = true;
|
||
|
xdg.userDirs.enable = true;
|
||
|
|
||
|
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" ${./xdg-music-dir.conf}
|
||
|
'';
|
||
|
}
|