nixos/rsyncd: convert module to an INI generator

This commit is contained in:
Emery Hemingway
2020-09-29 08:07:53 +02:00
committed by ehmry
parent b3f8642587
commit e7d0500cb3
3 changed files with 74 additions and 92 deletions
+25
View File
@@ -0,0 +1,25 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "rsyncd";
meta.maintainers = with pkgs.lib.maintainers; [ ehmry ];
nodes.machine.services.rsyncd = {
enable = true;
settings = {
global = {
"reverse lookup" = false;
"forward lookup" = false;
};
tmp = {
path = "/nix/store";
comment = "test module";
};
};
};
testScript = ''
start_all()
machine.wait_for_unit("rsyncd")
machine.succeed("rsync localhost::")
'';
})