about summary refs log tree commit diff
path: root/nixos/tests/komga.nix
diff options
context:
space:
mode:
authorGauvain 'GovanifY' Roussel-Tarbouriech <gauvain@govanify.com>2022-08-12 23:52:52 +0200
committerWinter <winter@winter.cafe>2022-08-18 22:52:27 -0400
commit6c55578c7e0a49807671b2e3ddde69cc96594733 (patch)
tree1b8346cf8f57b5a42bc9251851653fff028c4005 /nixos/tests/komga.nix
parent8896455eb34706385230fd126bd4b3c81d215f12 (diff)
nixos/komga: add module
Diffstat (limited to 'nixos/tests/komga.nix')
-rw-r--r--nixos/tests/komga.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/nixos/tests/komga.nix b/nixos/tests/komga.nix
new file mode 100644
index 0000000000000..02db50ef25f72
--- /dev/null
+++ b/nixos/tests/komga.nix
@@ -0,0 +1,22 @@
+import ./make-test-python.nix ({ lib, ... }:
+
+with lib;
+
+{
+  name = "komga";
+  meta.maintainers = with maintainers; [ govanify ];
+
+  nodes.machine =
+    { pkgs, ... }:
+    { services.komga = {
+        enable = true;
+        port = 1234;
+      };
+    };
+
+  testScript = ''
+    machine.wait_for_unit("komga.service")
+    machine.wait_for_open_port(1234)
+    machine.succeed("curl --fail http://localhost:1234/")
+  '';
+})