feat: postgres

This commit is contained in:
2025-03-21 00:12:27 +03:00
parent 01bc1610bf
commit 830336ee06
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -23,4 +23,6 @@
hardware.bluetooth.enable = true;
host.laptop = true;
environment.systemPackages = [ pkgs.dbgate ];
}
+1
View File
@@ -3,6 +3,7 @@
./host/bluetooth.nix
./host/bootloader.nix
./host/console.nix
./host/db.nix
./host/env.nix
./host/gamemode.nix
./host/gpg.nix
+10
View File
@@ -0,0 +1,10 @@
{ lib, ... }:{
services.postgresql = {
enable = true;
ensureDatabases = [ "mydatabase" ];
authentication = lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
};
}