Compare commits
2 commits
63c2953b90
...
6e10cdfed4
Author | SHA1 | Date | |
---|---|---|---|
6e10cdfed4 | |||
6d9f543af8 |
2 changed files with 15 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -19,7 +19,7 @@ in
|
|||
lazygit.enable = true;
|
||||
dunst.enable = true;
|
||||
sops.enable = true;
|
||||
playerctl.enable = false;
|
||||
playerctl.enable = true;
|
||||
};
|
||||
snowhawk.ssh = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue