nixos/modules/media/ncmpcpp/default.nix
2024-08-01 16:24:09 +04:00

20 lines
407 B
Nix

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