Added tests directory for testing in vm

This commit is contained in:
Andrew Bryant 2024-12-30 10:19:29 -05:00
parent 1e48f190da
commit 14976fdae9
3 changed files with 30 additions and 0 deletions

27
tests/default.nix Normal file
View File

@ -0,0 +1,27 @@
{ modulesPath, ... }:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
nixpkgs.config.allowUnfree = true;
users.users.test = {
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "test";
};
services.invoice-ninja = {
enable = true;
proxy.server = "caddy";
adminAccount.passwordFile = .invoice_ninja_test_password;
secretFile = ./test.env;
};
networking.firewall.enable = false;
services.resolved.enable = true;
}

View File

@ -0,0 +1 @@
password

2
tests/test.env Normal file
View File

@ -0,0 +1,2 @@
APP_KEY=base64:gJnNI8pOx4c0/Z6kl9mIjn0X9XkbJUWjtqnDFl9prvo=
API_KEY=test-api-token