Migrate graphical-session services to systemd

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-07-07 11:29:18 +03:00
parent 5308735a40
commit c3d89af891
11 changed files with 125 additions and 61 deletions

View File

@@ -6,15 +6,19 @@
home-manager.users.${user.name} = {
services.blueman-applet.enable = true;
systemd.user.services.mpris-proxy = {
Unit = {
Description = "MPRIS proxy";
Requires = [ "sound.target" ];
After = [ "network.target" "sound.target" ];
};
systemd.user.services = {
blueman-applet.Unit.After = [ "graphical-session.target" ];
Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
Intall.WantedBy = [ "default.target" ];
mpris-proxy = {
Unit = {
Description = "MPRIS proxy";
Requires = [ "sound.target" ];
After = [ "network.target" "sound.target" ];
};
Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
Install.WantedBy = [ "default.target" ];
};
};
};
}