1{ lib, ... }:
2{
3 name = "outline";
4
5 meta.maintainers = lib.teams.cyberus.members;
6
7 node.pkgsReadOnly = false;
8
9 nodes.outline = {
10 virtualisation.memorySize = 2 * 1024;
11 nixpkgs.config.allowUnfree = true;
12 services.outline = {
13 enable = true;
14 forceHttps = false;
15 storage = {
16 storageType = "local";
17 };
18 };
19 };
20
21 testScript = ''
22 outline.wait_for_unit("outline.service")
23 outline.wait_for_open_port(3000)
24 outline.succeed("curl --fail http://localhost:3000/")
25 '';
26}