Added tests directory for testing in vm
This commit is contained in:
parent
1e48f190da
commit
14976fdae9
27
tests/default.nix
Normal file
27
tests/default.nix
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
1
tests/invoice_ninja_test_password
Normal file
1
tests/invoice_ninja_test_password
Normal file
@ -0,0 +1 @@
|
|||||||
|
password
|
||||||
2
tests/test.env
Normal file
2
tests/test.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
APP_KEY=base64:gJnNI8pOx4c0/Z6kl9mIjn0X9XkbJUWjtqnDFl9prvo=
|
||||||
|
API_KEY=test-api-token
|
||||||
Loading…
x
Reference in New Issue
Block a user