infrastructure/nixos-modules/cloud/test.nix
Raphael Borun Das Gupta a76519ac01
Some checks failed
CI / build (push) Failing after 19m20s
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-21 10:26:17 +02:00

36 lines
840 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;
cloud-domain = "cloud.example.com";
in
{
qois.cloud = {
enable = true;
domain = cloud-domain;
package = pkgs.nextcloud31;
adminpassFile = "${pkgs.writeText "adminpass" "insecure"}"; # Don't try this at home!
};
qois.postgresql.package = pkgs.postgresql;
sops.secrets = mkForce { };
# Disable TLS services
services.nginx.virtualHosts."${cloud-domain}" = {
forceSSL = mkForce false;
enableACME = mkForce false;
};
# Test environment
environment.systemPackages = [
curl
gnugrep
];
};
}