nixos/home/modules/playerctl.nix

24 lines
373 B
Nix

{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.playerctl;
in
{
options.snowhawk.playerctl = {
enable = lib.mkEnableOption "playerctl";
};
config = lib.mkIf cfg.enable {
services.playerctld.enable = true;
xsession.enable = true;
home.packages = with pkgs; [
playerctl
];
services.sxhkd = {
enable = true;
};
};
}