nixos/modules/media/ncmpcpp/default.nix

22 lines
409 B
Nix
Raw Normal View History

2023-07-09 02:37:18 +04:00
{ 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;
};
};
}