1 import ./make-test-python.nix ({ lib, pkgs, ... }: let
3 testId = "7CFNTQM-IMTJBHJ-3UWRDIU-ZGQJFR6-VCXZ3NB-XUH3KZO-N52ITXR-LAIYUAU";
6 name = "syncthing-init";
7 meta.maintainers = with pkgs.lib.maintainers; [ lassulus ];
10 services.syncthing = {
12 devices.testDevice = {
15 folders.testFolder = {
17 devices = [ "testDevice" ];
19 extraOptions.gui.user = "guiUser";
24 machine.wait_for_unit("syncthing-init.service")
25 config = machine.succeed("cat /var/lib/syncthing/.config/syncthing/config.xml")
27 assert "testFolder" in config
28 assert "${testId}" in config
29 assert "guiUser" in config