Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ElrohirGT committed Aug 14, 2024
1 parent c5d1d92 commit 11d0fa9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/modules/services/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@ let

configFile = pkgs.writeText "postgresql.conf" (lib.concatStringsSep "\n"
(lib.mapAttrsToList (n: v: "${n} = ${toStr v}") cfg.settings));
setupPgHbaFileScript =
if cfg.hbaConf != null then let
file = pkgs.writeText "pg_hba.conf" cfg.hbaConf;
in ''cp ${file} "$PGDATA/pg_hba.conf"''
setupPgHbaFileScript =
if cfg.hbaConf != null then
let
file = pkgs.writeText "pg_hba.conf" cfg.hbaConf;
in
''cp ${file} "$PGDATA/pg_hba.conf"''
else "";
setupScript = pkgs.writeShellScriptBin "setup-postgres" ''
set -euo pipefail
Expand Down

0 comments on commit 11d0fa9

Please sign in to comment.