2024-08-20 22:58:24 +02:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2023-03-23 19:01:42 +01:00
|
|
|
|
2024-08-20 22:58:24 +02:00
|
|
|
let
|
|
|
|
|
cfg = config.modules.media.ncmpcpp;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
options.modules.media.ncmpcpp = {
|
|
|
|
|
enable = lib.my.mkBoolOpt false;
|
|
|
|
|
};
|
2023-03-23 19:01:42 +01:00
|
|
|
|
2024-08-20 22:58:24 +02:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-03-23 19:01:42 +01:00
|
|
|
home-manager.users.${config.user.name} = {
|
|
|
|
|
|
|
|
|
|
home = {
|
2024-10-13 22:52:21 +02:00
|
|
|
packages = with pkgs; [
|
2025-07-31 17:10:33 +02:00
|
|
|
(
|
|
|
|
|
(ncmpcpp.override { visualizerSupport = true; })
|
|
|
|
|
# Duplicate fix until it makes its way in unstable
|
|
|
|
|
.overrideAttrs
|
|
|
|
|
(old: {
|
|
|
|
|
configureFlags = old.configureFlags ++ [ (lib.withFeatureAs true "boost" boost.dev) ];
|
|
|
|
|
})
|
|
|
|
|
)
|
2023-03-23 19:01:42 +01:00
|
|
|
mpc_cli
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
file.".config/ncmpcpp/config".source = ./config;
|
|
|
|
|
file.".config/ncmpcpp/bindings".source = ./bindings;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|