modules: consistently define systemd services
This commit is contained in:
parent
d14fc3c13d
commit
2719bbada1
4 changed files with 5 additions and 3 deletions
|
@ -52,7 +52,7 @@ in {
|
||||||
wantedBy = ["graphical-session.target"];
|
wantedBy = ["graphical-session.target"];
|
||||||
restartTriggers = ["${config.hjem.users.${username}.files.".config/hypr/hypridle.conf".text}"];
|
restartTriggers = ["${config.hjem.users.${username}.files.".config/hypr/hypridle.conf".text}"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "exec";
|
Type = "simple";
|
||||||
ExecStart = "${hypridle}/bin/hypridle";
|
ExecStart = "${hypridle}/bin/hypridle";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
Slice = "background-graphical.slice";
|
Slice = "background-graphical.slice";
|
||||||
|
|
|
@ -108,8 +108,8 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false --quit-after-last-window-closed=false";
|
ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false --quit-after-last-window-closed=false";
|
||||||
Slice = "background-graphical.slice";
|
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
Slice = "background-graphical.slice";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,6 +27,7 @@ in {
|
||||||
wants = ["geoclue-agent.service"];
|
wants = ["geoclue-agent.service"];
|
||||||
wantedBy = ["graphical-session.target"];
|
wantedBy = ["graphical-session.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.gammastep}/bin/gammastep-indicator";
|
ExecStart = "${pkgs.gammastep}/bin/gammastep-indicator";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
|
|
|
@ -42,10 +42,11 @@ in {
|
||||||
partOf = ["graphical-session.target"];
|
partOf = ["graphical-session.target"];
|
||||||
wantedBy = ["graphical-session.target"];
|
wantedBy = ["graphical-session.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Type = "dbus";
|
||||||
BusName = "org.freedesktop.Notifications";
|
BusName = "org.freedesktop.Notifications";
|
||||||
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
Type = "dbus";
|
Slice = "background-graphical.slice";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue