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"];
|
||||
restartTriggers = ["${config.hjem.users.${username}.files.".config/hypr/hypridle.conf".text}"];
|
||||
serviceConfig = {
|
||||
Type = "exec";
|
||||
Type = "simple";
|
||||
ExecStart = "${hypridle}/bin/hypridle";
|
||||
Restart = "on-failure";
|
||||
Slice = "background-graphical.slice";
|
||||
|
|
|
@ -108,8 +108,8 @@ in {
|
|||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false --quit-after-last-window-closed=false";
|
||||
Slice = "background-graphical.slice";
|
||||
Restart = "on-failure";
|
||||
Slice = "background-graphical.slice";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -27,6 +27,7 @@ in {
|
|||
wants = ["geoclue-agent.service"];
|
||||
wantedBy = ["graphical-session.target"];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.gammastep}/bin/gammastep-indicator";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 3;
|
||||
|
|
|
@ -42,10 +42,11 @@ in {
|
|||
partOf = ["graphical-session.target"];
|
||||
wantedBy = ["graphical-session.target"];
|
||||
serviceConfig = {
|
||||
Type = "dbus";
|
||||
BusName = "org.freedesktop.Notifications";
|
||||
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
||||
Restart = "on-failure";
|
||||
Type = "dbus";
|
||||
Slice = "background-graphical.slice";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue