depot/third_party/home-manager/tests/modules/programs/ncmpcpp-linux/ncmpcpp-issue-3560.nix
Default email 2eafb8192e Project import generated by Copybara.
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
2023-01-10 02:35:00 -07:00

25 lines
524 B
Nix

{ pkgs, ... }:
{
config = {
# Minimal config reproducing
# https://github.com/nix-community/home-manager/issues/3560
programs.ncmpcpp.enable = true;
services.mpd.enable = true;
services.mpd.musicDirectory = "~/music";
test.stubs = {
ncmpcpp = { };
mpd = { };
};
nmt.script = ''
assertFileContent \
home-files/.config/ncmpcpp/config \
${./ncmpcpp-issue-3560-expected-config}
assertPathNotExists home-files/.config/ncmpcpp/bindings
'';
};
}