mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
24 lines
522 B
Nix
24 lines
522 B
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
name = "syncthing";
|
|
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;}'")
|
|
'';
|
|
}
|