[nidaros] Add Postgres config

This commit is contained in:
2025-10-14 18:09:43 +00:00
parent e3df55c8fd
commit 7cbab15cc9
2 changed files with 15 additions and 6 deletions

View File

@@ -1,15 +1,11 @@
{ lib, systemConfig, ... }: { lib, ... }:
{ {
imports = with lib.custom; [ imports = with lib.custom; [
(relativeToBase "modules") (relativeToBase "modules")
./boot.nix ./boot.nix
./hardware.nix ./hardware.nix
./postgres.nix
./security ./security
]; ];
# Temp fix to not override password until sops have been implemented
users.mutableUsers = lib.mkForce true;
users.users.${systemConfig.username}.hashedPasswordFile = lib.mkForce null;
} }

View File

@@ -0,0 +1,13 @@
{ pkgs, ... }:
{
services.postgresql = {
enable = true;
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser url auth-method
local all all trust
# ipv4
host all all 127.0.0.1/32 trust
'';
};
}