mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
syncthing: assert tray service content in test
This commit is contained in:
@@ -3,5 +3,21 @@
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/systemd/user/syncthingtray.service
|
||||
assertFileContent \
|
||||
home-files/.config/systemd/user/syncthingtray.service \
|
||||
${builtins.toFile "syncthingtray-expected.service" ''
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@syncthingtray@/bin/syncthingtray --wait
|
||||
|
||||
[Unit]
|
||||
After=graphical-session.target
|
||||
After=tray.target
|
||||
Description=syncthingtray
|
||||
PartOf=graphical-session.target
|
||||
Requires=tray.target
|
||||
''}
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user