this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ft: remove postgres layout from direnv configuration

-16
-16
modules/direnv.nix
··· 3 3 enable = true; 4 4 5 5 nix-direnv.enable = true; 6 - 7 - stdlib = '' 8 - layout_postgres() { 9 - export PGDATA="$(direnv_layout_dir)/postgres" 10 - export PGHOST="$PGDATA" 11 - 12 - if [[ ! -d "$PGDATA" ]]; then 13 - initdb -U postgres 14 - cat >> "$PGDATA/postgresql.conf" <<-EOF 15 - listen_addresses = ''' 16 - unix_socket_directories = '$PGHOST' 17 - EOF 18 - echo "CREATE DATABASE $USER;" | postgres --single -E postgres 19 - fi 20 - } 21 - ''; 22 6 }; 23 7 }