feat: postgres

This commit is contained in:
Sweetbread 2025-03-21 00:12:27 +03:00
parent 01bc1610bf
commit 4758954aea
2 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,7 @@
./host/bluetooth.nix ./host/bluetooth.nix
./host/bootloader.nix ./host/bootloader.nix
./host/console.nix ./host/console.nix
./host/db.nix
./host/env.nix ./host/env.nix
./host/gamemode.nix ./host/gamemode.nix
./host/gpg.nix ./host/gpg.nix

10
modules/host/db.nix Normal file
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
'';
};
}