aboutsummaryrefslogtreecommitdiffstats
path: root/modules/media/playerctl/default.nix
blob: bf71f06a86a8f58e433854635cebfcce1a8c558c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# CLI for controlling media players
{
  config,
  lib,
  pkgs,
  ...
}:
{
  options.media.playerctl = {
    enable = lib.mkEnableOption "Enables playerctl.";
    package = lib.mkOption {
      type = lib.types.package;
      readOnly = true;
      default = pkgs.playerctl;
      description = "The playerctl package to use.";
    };
  };

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