qois.cloud: add basic test (WIP)
This commit is contained in:
parent
b295ae9396
commit
a072ba0dd7
2 changed files with 67 additions and 0 deletions
35
nixos-modules/cloud/test.nix
Normal file
35
nixos-modules/cloud/test.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
# 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue