1import ./make-test-python.nix (
2 { lib, pkgs, ... }:
3 {
4 name = "syncthing";
5 meta.maintainers = with pkgs.lib.maintainers; [ chkno ];
6
7 nodes = {
8 a = {
9 environment.systemPackages = with pkgs; [
10 curl
11 libxml2
12 syncthing
13 ];
14 services.syncthing = {
15 enable = true;
16 };
17 };
18 };
19 # Test that indeed a syncthing-init.service systemd service is not created.
20 #
21 testScript = # python
22 ''
23 a.succeed("systemctl list-unit-files | awk '$1 == \"syncthing-init.service\" {exit 1;}'")
24 '';
25 }
26)