1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-22 17:01:11 +01:00

ncmpcpp: add module

PR #1457
This commit is contained in:
Olmo Kramer 2020-08-26 21:20:54 +02:00 committed by Robert Helgesson
parent 4fe5afa755
commit 4b702bf6b7
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
14 changed files with 282 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ 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
'';
};
}