aboutsummaryrefslogtreecommitdiff
path: root/modules/nixos/apps/playerctl/default.nix
blob: db4fe802a6b370e5a4dcc7ca67ee4c462567ff4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ options, config, lib, pkgs, namespace, ... }:

with lib; with lib.${namespace}; let
  cfg = config.${namespace}.apps.playerctl;
in {
  options.${namespace}.apps.playerctl = with types; {
    enable = mkEnableOption "playerctl";
  };

  config = mkIf cfg.enable {
    environment.systemPackages = with pkgs; [
      playerctl
    ];

    services.playerctld.enable = true;
  };
}