aboutsummaryrefslogtreecommitdiffstats
path: root/modules/media/playerctl/default.nix
blob: 58619a47b53fe5eb813e3de244a05d59492bd714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  pkgs,
  ...
}:

# Playerctl - CLI for controlling media players (Spotify, MPRIS, etc.)
{
  options.media.playerctl = {
    enable = lib.mkEnableOption "Enables playerctl.";
    package = lib.mkPackageOption pkgs "playerctl" { };
  };

  config = lib.mkIf config.media.playerctl.enable {
    home.packages = [ config.media.playerctl.package ];
  };
}