mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 21:11:08 +01:00
sway: unfail units before starting session target
Sometimes services can fail. Failed services will generally not be restarted by systemd. To start previously failed services we can just reset their failed state before starting our session target. GNOME and Plasma do the same thing. See: https://github.com/alebastr/sway-systemd/pull/11
This commit is contained in:
parent
b7b55e285c
commit
e3582e5151
12 changed files with 12 additions and 11 deletions
|
|
@ -412,6 +412,7 @@ in {
|
|||
extraCommands = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [
|
||||
"systemctl --user reset-failed"
|
||||
"systemctl --user start sway-session.target"
|
||||
"swaymsg -mt subscribe '[]' || true"
|
||||
"systemctl --user stop sway-session.target"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue