about summary refs log tree commit diff
path: root/smoke-test.nix
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-07-22 12:32:36 +0300
committerVika <vika@fireburn.ru>2023-07-22 12:34:56 +0300
commitb9e66068484ea4111cd4adf63abc1afdac056b22 (patch)
treefac3a9311be580079260a690ec5f33a15b71833f /smoke-test.nix
parent3c8122e54cdba2c635e723eb33f1d690f05767a7 (diff)
downloadkittybox-b9e66068484ea4111cd4adf63abc1afdac056b22.tar.zst
Mount webmention handling routes and tasks
Diffstat (limited to 'smoke-test.nix')
-rw-r--r--smoke-test.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/smoke-test.nix b/smoke-test.nix
index 139117f..b043a31 100644
--- a/smoke-test.nix
+++ b/smoke-test.nix
@@ -6,6 +6,19 @@ kittybox:
     kittybox = { config, pkgs, lib, ... }: {
       imports = [ kittybox.nixosModules.default ];
 
+      services.postgresql = {
+        enable = true;
+        ensureDatabases = ["kittybox"];
+        ensureUsers = [ {
+          name = "kittybox";
+          ensurePermissions = {
+            "DATABASE kittybox" = "ALL PRIVILEGES";
+          };
+        } ];
+      };
+
+      systemd.services.kittybox.wants = [ "postgresql.service" ];
+      systemd.services.kittybox.after = [ "postgresql.service" ];
       systemd.services.kittybox.wantedBy = lib.mkForce [];
 
       services.kittybox = {