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