This commit is contained in:
2025-08-23 14:06:46 +00:00
parent 691fad3b02
commit d89b0a6282
6 changed files with 305 additions and 23 deletions

View File

@@ -1,4 +1,6 @@
{
config,
lib,
pkgs,
user,
...
@@ -10,6 +12,36 @@
networking.hostName = "chidi";
networking.computerName = "Chidi";
nixpkgs.overlays = [
(import ../../../overlays/postgresql-darwin.nix)
];
services.postgresql = {
enable = true;
package = pkgs.postgresql_17;
enableTCPIP = true;
port = 5432;
ensureDatabases = ["postgres"];
ensureUsers = [
{
name = "postgres";
ensureDBOwnership = true;
}
{
name = "cschmatzler";
ensureClauses = {
superuser = true;
createdb = true;
};
}
];
authentication = pkgs.lib.mkForce ''
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
};
services.syncthing.settings.folders = {
"Projects/Work" = {
path = "/Users/${user}/Projects/Work";