summary refs log tree commit diff
path: root/nixos/tests/navidrome.nix
diff options
context:
space:
mode:
authornyanloutre <paul@nyanlout.re>2020-12-05 19:11:21 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-08-17 10:32:25 -0700
commitc9fc751673898ee095d2c873c136e1a5505d5551 (patch)
tree13cad47e25180fe290fee195d7d600f43183c57d /nixos/tests/navidrome.nix
parent945d0225b17a7f0919509be240fcce8427ebba13 (diff)
downloadnixpkgs-c9fc751673898ee095d2c873c136e1a5505d5551.tar
nixpkgs-c9fc751673898ee095d2c873c136e1a5505d5551.tar.gz
nixpkgs-c9fc751673898ee095d2c873c136e1a5505d5551.tar.bz2
nixpkgs-c9fc751673898ee095d2c873c136e1a5505d5551.tar.lz
nixpkgs-c9fc751673898ee095d2c873c136e1a5505d5551.tar.xz
nixpkgs-c9fc751673898ee095d2c873c136e1a5505d5551.tar.zst
nixpkgs-c9fc751673898ee095d2c873c136e1a5505d5551.zip
nixos/navidrome: init module and test
Co-authored-by: aciceri <andrea.ciceri@autistici.org>
Co-authored-by: nyanloutre <paul@nyanlout.re>
Diffstat (limited to 'nixos/tests/navidrome.nix')
-rw-r--r--nixos/tests/navidrome.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/tests/navidrome.nix b/nixos/tests/navidrome.nix
new file mode 100644
index 00000000000..42e14720b2e
--- /dev/null
+++ b/nixos/tests/navidrome.nix
@@ -0,0 +1,12 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+  name = "navidrome";
+
+  machine = { ... }: {
+    services.navidrome.enable = true;
+  };
+
+  testScript = ''
+    machine.wait_for_unit("navidrome")
+    machine.wait_for_open_port("4533")
+  '';
+})