diff --git a/modules/host.nix b/modules/host.nix index 4bd5cd8..523b33f 100644 --- a/modules/host.nix +++ b/modules/host.nix @@ -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 diff --git a/modules/host/db.nix b/modules/host/db.nix new file mode 100644 index 0000000..14893b4 --- /dev/null +++ b/modules/host/db.nix @@ -0,0 +1,10 @@ +{ lib, ... }:{ + services.postgresql = { + enable = true; + ensureDatabases = [ "mydatabase" ]; + authentication = lib.mkOverride 10 '' + #type database DBuser auth-method + local all all trust + ''; + }; +} \ No newline at end of file