Commit Graph
16 Commits
Author SHA1 Message Date
awkawbandClaude Sonnet 5 2c0a48b899 Add automated NixOS VM test and CLAUDE.md
Adds a pkgs.testers.nixosTest (checks.<system>.invoiceninja) that boots
the module end-to-end and checks that mysql/redis/phpfpm/queue-worker/
nginx come up, the one-time migrate/seed/admin-create setup completed,
the app shell and /login page are served, invoiceninja-manage works,
and the seeded admin can log in via the API.

Factors the shared services.invoiceninja config used by both the
interactive VM and the new test into tests/common.nix, and satisfies
NixOS's fileSystems/bootloader assertions in the interactive VM config
so `nix flake check` evaluates nixosConfigurations.test cleanly (the
qemu-vm module already overrides both when actually building
config.system.build.vm, so this only affects the toplevel-eval path).

Also adds a `just test` recipe, a CLAUDE.md codebase overview, and a
.gitignore for the result/nixos.qcow2 build artifacts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-26 12:10:41 -04:00
awkawb df90f25778 tests/default.nix: removed user test, added password declaration for root user
This makes testing/debugging easier by allowing to login as root
directly. The previous test system configuration added a step to this
process by forcing devs to login as test and use sudo to escalate to
root.
2026-08-14 16:15:55 -04:00
awkawb 554f73d477 tests/default.nix: removed system.stateVersion declaration
Having the declaration of system.stateVersion just adds more
maintainance for devs. For example, changing the nixpkgs value in
flake.nix requires a change of system.stateVersion in tests/default.nix.
2026-08-14 16:15:55 -04:00
awkawb 6b0f38d59e tests/default.nix: updated system.stateVersion 2026-05-25 19:02:21 -04:00
awkawb 730715014e tests/default.nix: modified to reflect package name change 2025-01-02 16:22:09 -05:00
awkawb 2b98375f9b tests/default.nix: added stateVersion, added import of nixos module, fixed typo 2025-01-01 12:12:59 -05:00
awkawb 14976fdae9 Added tests directory for testing in vm 2024-12-30 10:19:29 -05:00
awkawb 1e48f190da Removed unused files and directories 2024-12-28 16:19:55 -05:00
awkawb 038d6fb3bf Merge branch 'master' of gitea.awkawb.cloud:awkawb/invoice-ninja-nixos 2024-12-27 16:00:24 -05:00
awkawb 449c52239a Updated test-config to use modules sendmail feature 2024-10-14 16:26:43 -04:00
awkawb 91a0d4e71a Work on sendmail to send emails 2024-10-13 13:08:04 -04:00
awkawb 5f862fe8d3 Updated Invoice Ninja to v5.10.31
* Changed php environment packages
* Added patch to switch back to Flutter
* Added patch to fix storage permissions
2024-10-06 21:48:09 -04:00
awkawb 1abeb7dc5a Added Nginx as a proxy server option
* Nginx is the default proxy server
2024-10-06 13:30:32 -04:00
awkawb 60640a5023 Work on Invoice Ninja v5.10.29
* Module now uses caddy instead of nginx
* Module now has adminEmail and adminPassword options
2024-10-04 09:56:33 -04:00
awkawb 553674743b Changed test-config.nix
* Cleaned up function args
* Removed create-invoice-ninja-user script
* test-user is now test
2024-09-27 08:49:29 -04:00
awkawb 2dd1579547 Initial commit 2024-07-04 13:56:50 -04:00