diff --git a/modules/desktop/addons/playerctl/default.nix b/modules/desktop/addons/playerctl/default.nix new file mode 100644 index 0000000..a36d0a7 --- /dev/null +++ b/modules/desktop/addons/playerctl/default.nix @@ -0,0 +1,22 @@ +{ + 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; + }; + }; +} diff --git a/modules/desktop/sway/default.nix b/modules/desktop/sway/default.nix index 3c4d122..c973447 100644 --- a/modules/desktop/sway/default.nix +++ b/modules/desktop/sway/default.nix @@ -29,12 +29,12 @@ in { fonts.enable = true; gammastep.enable = true; mako.enable = true; + playerctl.enable = true; rofi.enable = true; swaylock.enable = true; waybar.enable = true; # TODO - # playerctl # light # pamixer };