diff --git a/nixos-modules/cloud/test.nix b/nixos-modules/cloud/test.nix index 386dcba..5dbfa78 100644 --- a/nixos-modules/cloud/test.nix +++ b/nixos-modules/cloud/test.nix @@ -7,25 +7,24 @@ { pkgs, lib, ... }: let inherit (pkgs) curl gnugrep; - inherit (lib) mkForce; - cloud-domain = "cloud.example.com"; + inherit (lib) mkForce genAttrs const; in { qois.cloud = { enable = true; - domain = cloud-domain; + domain = "cloud.example.com"; package = pkgs.nextcloud31; - adminpassFile = "${pkgs.writeText "adminpass" "insecure"}"; # Don't try this at home! + adminpassFile = (pkgs.writeText "nextcloud-test-adminpass-file" "super secret password").outPath; }; qois.postgresql.package = pkgs.postgresql; sops.secrets = mkForce { }; # Disable TLS services - services.nginx.virtualHosts."${cloud-domain}" = { + services.nginx.virtualHosts = genAttrs [ "cloud.example.com" ] (const { forceSSL = mkForce false; enableACME = mkForce false; - }; + }); # Test environment environment.systemPackages = [ diff --git a/nixos-modules/cloud/test.py b/nixos-modules/cloud/test.py index 5e484b9..b7d5cf9 100644 --- a/nixos-modules/cloud/test.py +++ b/nixos-modules/cloud/test.py @@ -1,8 +1,6 @@ def test(subtest, webserver): webserver.wait_for_unit("nginx") webserver.wait_for_open_port(80) - webserver.wait_for_unit("nextcloud-setup.service") - webserver.wait_for_unit("phpfpm-nextcloud.service") # Helpers def curl_variable_test(node, variable, expected, url):