Initial commit
This commit is contained in:
38
tests/test-config.nix
Normal file
38
tests/test-config.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ config, pkgs, modulesPath, ... }:
|
||||
|
||||
let
|
||||
invoice-ninja-script = pkgs.writers.writeBashBin "create-invoice-ninja-user" ''
|
||||
invoice-ninja-manage ninja:
|
||||
'';
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
../invoice-ninja.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
users.users.test-user = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
initialPassword = "testing";
|
||||
};
|
||||
|
||||
services.invoice-ninja = {
|
||||
enable = true;
|
||||
database.createLocally = true;
|
||||
nginx = { };
|
||||
secretFile = ./test-secrets.env;
|
||||
};
|
||||
|
||||
networking.firewall.enable = false;
|
||||
|
||||
services.resolved.enable = true;
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.xserver.desktopManager.xfce.enable = true;
|
||||
}
|
||||
1
tests/test-secrets.env
Normal file
1
tests/test-secrets.env
Normal file
@@ -0,0 +1 @@
|
||||
APP_KEY=base64:gJnNI8pOx4c0/Z6kl9mIjn0X9XkbJUWjtqnDFl9prvo=
|
||||
Reference in New Issue
Block a user