mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 03:03:55 -05:00
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
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:
parent
65df61f650
commit
76fd89a217
|
@ -39,7 +39,13 @@
|
||||||
swayosd.enable = lib.mkDefault true;
|
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 = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue