feat(home-manager): add cmus module

This commit is contained in:
Yorick Barbanneau 2024-09-04 01:50:34 +02:00
parent 11309754fa
commit dbea61d652
5 changed files with 120 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.audio.cmus;
in
{
options.modules.audio.cmus= {
enable = mkEnableOption "enable cmus audio player";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
cmus
];
home.file.".config/cmus/rc".source = ./files/rc;
home.file.".config/cmus/notify.sh".source = ./files/notify.sh;
};
}