Initial commit

This commit is contained in:
2024-07-04 13:56:50 -04:00
commit 2dd1579547
8 changed files with 630 additions and 0 deletions

38
tests/test-config.nix Normal file
View 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
View File

@@ -0,0 +1 @@
APP_KEY=base64:gJnNI8pOx4c0/Z6kl9mIjn0X9XkbJUWjtqnDFl9prvo=