about summary refs log tree commit diff
path: root/nixos/tests/gonic.nix
diff options
context:
space:
mode:
authorMichal Koutenský <michal@koutensky.net>2022-12-21 01:08:48 +0100
committerMichal Koutenský <michal@koutensky.net>2023-05-07 22:43:23 +0200
commit8118e3de43d2303449af0d0ee5cd3c6d32021d51 (patch)
tree8fe9fee540d52e6f186c0d04a61ac2d9fae8ba72 /nixos/tests/gonic.nix
parent9f0fa3dcc8c35b783ed9ce4a86b0d11b10d561e2 (diff)
nixos/gonic: init
Diffstat (limited to 'nixos/tests/gonic.nix')
-rw-r--r--nixos/tests/gonic.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/gonic.nix b/nixos/tests/gonic.nix
new file mode 100644
index 0000000000000..726d7da0970f7
--- /dev/null
+++ b/nixos/tests/gonic.nix
@@ -0,0 +1,18 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+  name = "gonic";
+
+  nodes.machine = { ... }: {
+    services.gonic = {
+      enable = true;
+      settings = {
+        music-path = [ "/tmp" ];
+        podcast-path = "/tmp";
+      };
+    };
+  };
+
+  testScript = ''
+    machine.wait_for_unit("gonic")
+    machine.wait_for_open_port(4747)
+  '';
+})