mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 12:09:46 +01:00
4b702bf6b7
PR #1457
25 lines
547 B
Nix
25 lines
547 B
Nix
{ 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
|
|
'';
|
|
};
|
|
}
|