home-manager/tests/modules/programs/ncmpcpp-linux/ncmpcpp-use-mpd-config.nix

26 lines
547 B
Nix
Raw Normal View History

2020-08-26 19:20:54 +00:00
{ pkgs, ... }:
{
config = {
programs.ncmpcpp.enable = true;
services.mpd.enable = true;
services.mpd.musicDirectory = "/home/user/music";
nixpkgs.overlays = [
(self: super: {
ncmpcpp = pkgs.writeScriptBin "dummy-ncmpcpp" "";
mpd = pkgs.writeScriptBin "dummy-mpd" "";
})
];
nmt.script = ''
assertFileContent \
home-files/.config/ncmpcpp/config \
${./ncmpcpp-use-mpd-config-expected-config}
assertPathNotExists home-files/.config/ncmpcpp/bindings
'';
};
}