21 lines
409 B
Nix
21 lines
409 B
Nix
{ outputs, options, config, lib, pkgs, ...}:
|
|
with lib;
|
|
let
|
|
cfg = config.modules.media.ncmpcpp;
|
|
in
|
|
{
|
|
options.modules.media.ncmpcpp = {
|
|
enable = mkEnableOption false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
users.users.sako.packages = with pkgs; [
|
|
ncmpcpp
|
|
];
|
|
|
|
home-manager.users.sako.xdg.configFile.ncmpcpp = {
|
|
source = ../../../config/ncmpcpp;
|
|
recursive = true;
|
|
};
|
|
};
|
|
}
|