home: better systemd defaults for swayidle and swayosd
Some checks are pending
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-08-02 16:31:15 -04:00
parent 65df61f650
commit 76fd89a217
2 changed files with 14 additions and 2 deletions

View file

@ -39,7 +39,13 @@
swayosd.enable = lib.mkDefault true;
};
systemd.user.services.swayosd.Install.WantedBy = ["hyprland-session.target" "sway-session.target"];
systemd.user.services.swayosd = {
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
Service = {
Restart = lib.mkForce "on-failure";
RestartSec = 5;
};
};
xdg.portal = {
enable = true;

View file

@ -62,6 +62,12 @@ in {
};
};
systemd.user.services.swayidle.Service.Restart = lib.mkForce "on-failure";
systemd.user.services.swayidle = {
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
Service = {
Restart = lib.mkForce "on-failure";
RestartSec = 5;
};
};
};
}