modules: consistently define systemd services

This commit is contained in:
Anthony Rodriguez 2025-02-11 18:21:02 +01:00
parent d14fc3c13d
commit 2719bbada1
Signed by: nezia
SSH key fingerprint: SHA256:Ihfpl0rUpqDevYqnzSR34OYfVLbDNkBiUjs3CpX4ykA
4 changed files with 5 additions and 3 deletions

View file

@ -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";

View file

@ -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";
}; };
}; };
}; };

View file

@ -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;

View file

@ -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";
}; };
}; };
}; };