Converted playerctl to a home module

This commit is contained in:
alejandro-angulo 2024-08-03 08:06:17 -07:00
parent dae4076857
commit 9fb7bb1ae1
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
4 changed files with 21 additions and 23 deletions

View file

@ -0,0 +1,20 @@
{
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;
};
}