feat(home-manager): add cmus module
This commit is contained in:
parent
11309754fa
commit
dbea61d652
5 changed files with 120 additions and 0 deletions
17
modules/home-manager/audio/cmus/default.nix
Normal file
17
modules/home-manager/audio/cmus/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue