diff options
author | Vika <vika@fireburn.ru> | 2023-07-22 12:32:36 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-07-22 12:34:56 +0300 |
commit | b9e66068484ea4111cd4adf63abc1afdac056b22 (patch) | |
tree | fac3a9311be580079260a690ec5f33a15b71833f /smoke-test.nix | |
parent | 3c8122e54cdba2c635e723eb33f1d690f05767a7 (diff) | |
download | kittybox-b9e66068484ea4111cd4adf63abc1afdac056b22.tar.zst |
Mount webmention handling routes and tasks
Diffstat (limited to 'smoke-test.nix')
-rw-r--r-- | smoke-test.nix | 13 |
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 = { |