1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00
home-manager/tests/modules/services/syncthing/linux/tray.nix
2025-09-25 09:42:44 +02:00

23 lines
623 B
Nix

{
services.syncthing.tray.enable = true;
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
''}
'';
}