Split into more modules
This commit is contained in:
parent
b6760195ce
commit
70f3e0a538
15 changed files with 219 additions and 124 deletions
24
modules/media/ncmpcpp/ncmpcpp.nix
Normal file
24
modules/media/ncmpcpp/ncmpcpp.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ inputs, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.media.ncmpcpp;
|
||||
in {
|
||||
options.modules.media.ncmpcpp = { enable = mkBoolOpt false; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${config.user.name} = {
|
||||
|
||||
home = {
|
||||
packages = with pkgs.unstable; [
|
||||
(ncmpcpp.override { visualizerSupport = true; })
|
||||
mpc_cli
|
||||
];
|
||||
|
||||
file.".config/ncmpcpp/config".source = ./config;
|
||||
file.".config/ncmpcpp/bindings".source = ./bindings;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue