Skip to content

Commit a6bbb1a

Browse files
committed
configure mprisence
1 parent 018fd31 commit a6bbb1a

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

modules/services/default.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
imports = [
44
./noizdns.nix
55
];
6+
systemd.user.services.mprisence = {
7+
description = "Discord Rich Presence for MPRIS";
8+
unitConfig = {
9+
Requires = [ "dbus.socket" ];
10+
After = [ "dbus.socket" "graphical-session.target" ];
11+
};
12+
serviceConfig = {
13+
ExecStart = "${pkgs.mprisence}/bin/mprisence";
14+
Restart = "always";
15+
};
16+
wantedBy = [ "default.target" ];
17+
};
618
services = {
719
ananicy = {
820
enable = true;

modules/system/preservation.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ _: {
113113
".librewolf"
114114
".password-store"
115115
".local/state/wireplumber"
116+
".config/mprisence"
116117
".config/Antigravity"
117118
".config/vesktop"
118119
".config/Element"

0 commit comments

Comments
 (0)