diff --git a/home/modules/playerctl.nix b/home/modules/playerctl.nix new file mode 100644 index 0000000..e3364fc --- /dev/null +++ b/home/modules/playerctl.nix @@ -0,0 +1,14 @@ +{ lib, config, ... }: + +let + cfg = config.snowhawk.playerctl; +in +{ + options.snowhawk.playerctl = { + enable = lib.mkEnableOption "playerctl"; + }; + + config = lib.mkIf cfg.enable { + services.playerctld.enable = true; + }; +} diff --git a/hosts/snowhawk/home.nix b/hosts/snowhawk/home.nix index 0668746..8e2e380 100644 --- a/hosts/snowhawk/home.nix +++ b/hosts/snowhawk/home.nix @@ -20,6 +20,7 @@ in dunst.enable = true; sops.enable = true; ssh.enable = true; + playerctl.enable = true; }; xsession.numlock.enable = true;