dotfiles/modules/nixos/desktop/addons/playerctl/default.nix

23 lines
382 B
Nix
Raw Normal View History

2023-03-26 16:00:12 +00:00
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.desktop.addons.playerctl;
in {
options.aa.desktop.addons.playerctl = with types; {
enable = mkEnableOption "playerctl";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [playerctl];
aa.home.extraOptions = {
services.playerctld.enable = true;
};
};
}