mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-07 17:41:03 +01:00
swayidle: always restart systemd unit on failure
Occasionally, swayidle crashes with a failure to connect to the Wayland session. Ideally, swayidle should automatically restart instead of leaving the system in a vulnerable state.
This commit is contained in:
parent
fad880ea93
commit
50e582b9f9
2 changed files with 2 additions and 0 deletions
|
|
@ -46,6 +46,7 @@
|
|||
|
||||
assertFileExists $serviceFile
|
||||
assertFileRegex $serviceFile 'ExecStart=.*/bin/swayidle ${expectedArgs}'
|
||||
assertFileRegex $serviceFile 'Restart=always'
|
||||
assertFileRegex $serviceFile 'Environment=.*PATH=${
|
||||
lib.makeBinPath [ pkgs.bash ]
|
||||
}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue