Compare commits

...

2 Commits

Author SHA1 Message Date
Zynh Ludwig 6e10cdfed4 enable playerctl 2024-07-16 03:29:06 -07:00
Zynh Ludwig 6d9f543af8 custom playerctl service 2024-07-16 03:28:53 -07:00
2 changed files with 15 additions and 2 deletions

View File

@ -17,7 +17,20 @@ in
};
config = lib.mkIf cfg.enable {
services.playerctld.enable = true;
systemd.user.services.playerctld = {
Unit = {
Description = "MPRIS media player daemon";
PartOf = [ "graphical-session.target" ];
};
Install.WantedBy = [ "graphical-session.target" ];
Service = {
ExecStart = "${pkgs.playerctl}/bin/playerctld";
Type = "dbus";
BusName = "org.mpris.MediaPlayer2.playerctld";
};
};
home.packages = with pkgs; [
playerctl

View File

@ -19,7 +19,7 @@ in
lazygit.enable = true;
dunst.enable = true;
sops.enable = true;
playerctl.enable = false;
playerctl.enable = true;
};
snowhawk.ssh = {
enable = true;