mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +01:00
23 lines
623 B
Nix
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
|
|
''}
|
|
'';
|
|
}
|