1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

Clean up systemd units for all graphical services

This commit is contained in:
Robert Helgesson 2017-06-26 18:34:09 +02:00
parent acf8d4e985
commit 9c17c5ccbb
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
10 changed files with 20 additions and 3 deletions

View file

@ -22,8 +22,8 @@ with lib;
systemd.user.services.dunst = { systemd.user.services.dunst = {
Unit = { Unit = {
Description = "Dunst notification daemon"; Description = "Dunst notification daemon";
Requires = "graphical-session.target"; After = [ "graphical-session-pre.target" ];
After = "graphical-session.target"; PartOf = [ "graphical-session.target" ];
}; };
Service = { Service = {

View file

@ -28,6 +28,7 @@ in
systemd.user.services.gnome-keyring = { systemd.user.services.gnome-keyring = {
Unit = { Unit = {
Description = "GNOME Keyring"; Description = "GNOME Keyring";
PartOf = [ "graphical-session-pre.target" ];
}; };
Service = { Service = {
@ -45,7 +46,7 @@ in
}; };
Install = { Install = {
WantedBy = [ "graphical-session.target" ]; WantedBy = [ "graphical-session-pre.target" ];
}; };
}; };
}; };

View file

@ -13,6 +13,8 @@ with lib;
systemd.user.services.keepassx = { systemd.user.services.keepassx = {
Unit = { Unit = {
Description = "KeePassX password manager"; Description = "KeePassX password manager";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Install = { Install = {

View file

@ -13,6 +13,8 @@ with lib;
systemd.user.services.network-manager-applet = { systemd.user.services.network-manager-applet = {
Unit = { Unit = {
Description = "Network Manager applet"; Description = "Network Manager applet";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Install = { Install = {

View file

@ -42,6 +42,8 @@ in
systemd.user.services.random-background = { systemd.user.services.random-background = {
Unit = { Unit = {
Description = "Set random desktop background using feh"; Description = "Set random desktop background using feh";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Service = { Service = {

View file

@ -99,6 +99,8 @@ in {
systemd.user.services.redshift = { systemd.user.services.redshift = {
Unit = { Unit = {
Description = "Redshift colour temperature adjuster"; Description = "Redshift colour temperature adjuster";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Install = { Install = {

View file

@ -27,6 +27,8 @@ in
systemd.user.services.taffybar = { systemd.user.services.taffybar = {
Unit = { Unit = {
Description = "Taffybar desktop bar"; Description = "Taffybar desktop bar";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Service = { Service = {

View file

@ -13,6 +13,8 @@ with lib;
systemd.user.services.udiskie = { systemd.user.services.udiskie = {
Unit = { Unit = {
Description = "Udiskie mount daemon"; Description = "Udiskie mount daemon";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Service = { Service = {

View file

@ -13,6 +13,8 @@ with lib;
systemd.user.services.xscreensaver = { systemd.user.services.xscreensaver = {
Unit = { Unit = {
Description = "XScreenSaver"; Description = "XScreenSaver";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Service = { Service = {

View file

@ -38,6 +38,8 @@ in
systemd.user.services.setxkbmap = { systemd.user.services.setxkbmap = {
Unit = { Unit = {
Description = "Set up keyboard in X"; Description = "Set up keyboard in X";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Install = { Install = {