Files
nixpkgs/nixos/tests/syncthing/no-settings.nix
Adam Dinwoodie 6455637cda nixosTests.syncthing-{folders,no-settings}: clarify names
Change test names to match the name of the test, so different syncthing
tests can be distinguished.
2026-09-28 11:59:34 +02:00

25 lines
534 B
Nix

{ lib, pkgs, ... }:
{
name = "syncthing-no-settings";
meta.maintainers = with pkgs.lib.maintainers; [ chkno ];
nodes = {
a = {
environment.systemPackages = with pkgs; [
curl
libxml2
syncthing
];
services.syncthing = {
enable = true;
};
};
};
# Test that indeed a syncthing-init.service systemd service is not created.
#
testScript = # python
''
a.succeed("systemctl list-unit-files | awk '$1 == \"syncthing-init.service\" {exit 1;}'")
'';
}