mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
syncthing: assert tray service content in test
This commit is contained in:
parent
ade850153b
commit
2324540520
1 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
''}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue