From 5db08ceb6a9d189f9b9ed7e94dd4b445b39d8a17 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Sun, 19 Feb 2023 12:30:41 +0100 Subject: [PATCH] ZeNixComputa: Add database to test kabalist --- hostconfig/ZeNixComputa/nixos.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hostconfig/ZeNixComputa/nixos.nix b/hostconfig/ZeNixComputa/nixos.nix index d80a6c2..79c956d 100644 --- a/hostconfig/ZeNixComputa/nixos.nix +++ b/hostconfig/ZeNixComputa/nixos.nix @@ -44,6 +44,17 @@ hardware.ckb-next.enable = true; + services.postgresql = { + enable = true; + ensureUsers = [ + { + name = "traxys"; + ensurePermissions = {"DATABASE \"list\"" = "ALL PRIVILEGES";}; + } + ]; + ensureDatabases = ["list"]; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave