infrastructure/nixos-modules/cloud/test.nix
Raphael Borun Das Gupta a072ba0dd7
Some checks failed
CI / build (push) Failing after 2m34s
CI / deploy (docs-ops.qo.is) (push) Has been skipped
CI / deploy (system-physical) (push) Has been skipped
CI / deploy (system-vm) (push) Has been skipped
qois.cloud: add basic test (WIP)
2025-06-14 21:08:12 +02:00

35 lines
855 B
Nix

{
...
}:
{
# Note: This extends the default configuration from ${self}/checks/nixos-modules
nodes.webserver =
{ pkgs, lib, ... }:
let
inherit (pkgs) curl gnugrep;
inherit (lib) mkForce genAttrs const;
in
{
qois.cloud = {
enable = true;
domain = "cloud.example.com";
package = pkgs.nextcloud31;
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 = genAttrs [ "cloud.example.com" ] (const {
forceSSL = mkForce false;
enableACME = mkForce false;
});
# Test environment
environment.systemPackages = [
curl
gnugrep
];
};
}