From 79e022484623154b9f637967ea3a4c19e8a58ffb Mon Sep 17 00:00:00 2001 From: Zynh Ludwig <Zynh0722@gmail.com> Date: Wed, 5 Mar 2025 13:27:53 -0800 Subject: [PATCH] hyprland: playerctl --- modules/home/hyprland.nix | 14 ++++++++++++++ modules/hyprland.nix | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 modules/home/hyprland.nix diff --git a/modules/home/hyprland.nix b/modules/home/hyprland.nix new file mode 100644 index 0000000..01b9d1e --- /dev/null +++ b/modules/home/hyprland.nix @@ -0,0 +1,14 @@ +{ pkgs, lib, ... }: + +{ + + services.playerctld.enable = true; + systemd.user.services.playerctld = { + Unit.PartOf = lib.mkForce [ "graphical-session.target" ]; + Install.WantedBy = lib.mkForce [ "graphical-session.target" ]; + }; + + home.packages = with pkgs; [ + playerctl + ]; +} diff --git a/modules/hyprland.nix b/modules/hyprland.nix index 88cc132..b18499d 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -74,6 +74,8 @@ in pipewire-controller ]; - home-manager.sharedModules = [ ]; + home-manager.sharedModules = [ + ./home/hyprland.nix + ]; }; }