feat: postgres

This commit is contained in:
2026-08-19 21:41:36 +03:00
committed by Sweetbread
parent 01aa2b8083
commit 97e6f6bd31
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -23,4 +23,6 @@
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
host.laptop = true; host.laptop = true;
environment.systemPackages = [ pkgs.dbgate ];
} }
+1
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
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
'';
};
}