1import ./make-test-python.nix ({ lib, pkgs, ... }: {
2 name = "firefly-iii";
3 meta.maintainers = [ lib.maintainers.savyajha ];
4
5 nodes.machine = { config, ... }: {
6 environment.etc = {
7 "firefly-iii-appkey".text = "TestTestTestTestTestTestTestTest";
8 };
9 services.firefly-iii = {
10 enable = true;
11 virtualHost = "http://localhost";
12 enableNginx = true;
13 settings = {
14 APP_KEY_FILE = "/etc/firefly-iii-appkey";
15 LOG_CHANNEL = "stdout";
16 SITE_OWNER = "mail@example.com";
17 };
18 };
19 };
20
21 testScript = ''
22 machine.wait_for_unit("phpfpm-firefly-iii.service")
23 machine.wait_for_unit("nginx.service")
24 machine.succeed("curl -fvvv -Ls http://localhost/ | grep 'Firefly III'")
25 '';
26})