From 358fec64c3edb35152113372f31e9ff47d1b97b4 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 26 Nov 2024 09:55:54 +0100 Subject: [PATCH] ensure that noa db exists --- hosts/lambdaos/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/lambdaos/configuration.nix b/hosts/lambdaos/configuration.nix index 6e6c923..c39599f 100644 --- a/hosts/lambdaos/configuration.nix +++ b/hosts/lambdaos/configuration.nix @@ -258,6 +258,16 @@ }; services = { + postgresql = { + enable = true; + ensureDatabases = [ "noa" ]; + ensureUsers = [ + { + name = "noa"; + ensureDBOwnership = true; + } + ]; + }; ollama = { enable = true; acceleration = "cuda";