dotfiles/modules/home/services/playerctld/default.nix

21 lines
352 B
Nix
Raw Permalink Normal View History

2024-08-03 15:06:17 +00:00
{
config,
lib,
pkgs,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.services.playerctld;
in {
options.${namespace}.services.playerctld = {
enable = mkEnableOption "playerctl";
};
config = mkIf cfg.enable {
home.packages = [pkgs.playerctl];
services.playerctld.enable = true;
};
}