summary refs log tree commit diff
path: root/nixos/tests/rsyncd.nix
diff options
context:
space:
mode:
authorEmery Hemingway <ehmry@posteo.net>2020-08-13 15:31:17 +0200
committerehmry <ehmry@posteo.net>2020-09-29 08:07:53 +0200
commite7d0500cb3c62c2c20d5f02a9bae712ed577f5e4 (patch)
treec6a414d71981ce7406c7d27cb85fc3ea80826467 /nixos/tests/rsyncd.nix
parentb3f8642587eee9027321ff8c6edc4a4444e51173 (diff)
downloadnixpkgs-e7d0500cb3c62c2c20d5f02a9bae712ed577f5e4.tar
nixpkgs-e7d0500cb3c62c2c20d5f02a9bae712ed577f5e4.tar.gz
nixpkgs-e7d0500cb3c62c2c20d5f02a9bae712ed577f5e4.tar.bz2
nixpkgs-e7d0500cb3c62c2c20d5f02a9bae712ed577f5e4.tar.lz
nixpkgs-e7d0500cb3c62c2c20d5f02a9bae712ed577f5e4.tar.xz
nixpkgs-e7d0500cb3c62c2c20d5f02a9bae712ed577f5e4.tar.zst
nixpkgs-e7d0500cb3c62c2c20d5f02a9bae712ed577f5e4.zip
nixos/rsyncd: convert module to an INI generator
Diffstat (limited to 'nixos/tests/rsyncd.nix')
-rw-r--r--nixos/tests/rsyncd.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/tests/rsyncd.nix b/nixos/tests/rsyncd.nix
new file mode 100644
index 00000000000..3639320f645
--- /dev/null
+++ b/nixos/tests/rsyncd.nix
@@ -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::")
+  '';
+})