From ef6964f3b42112c30fb6653f04c4196262084c34 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 18 Nov 2023 18:27:32 -0500 Subject: [PATCH] introduced and commented out pg and c stuff mostly just dev experiments for later --- modules/common/neovim/config/syntax.nix | 1 + modules/common/shell/direnv.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/modules/common/neovim/config/syntax.nix b/modules/common/neovim/config/syntax.nix index 009066f..872ad8d 100644 --- a/modules/common/neovim/config/syntax.nix +++ b/modules/common/neovim/config/syntax.nix @@ -4,6 +4,7 @@ (pkgs.vimPlugins.nvim-treesitter.withPlugins (_plugins: with pkgs.tree-sitter-grammars; [ tree-sitter-bash + # tree-sitter-c tree-sitter-fish tree-sitter-hcl tree-sitter-ini diff --git a/modules/common/shell/direnv.nix b/modules/common/shell/direnv.nix index daddb31..37877e1 100644 --- a/modules/common/shell/direnv.nix +++ b/modules/common/shell/direnv.nix @@ -7,6 +7,22 @@ config = { whitelist = { prefix = [ config.dotfilesPath ]; }; }; }; + # programs.direnv.direnvrcExtra = '' + # layout_postgres() { + # export PGDATA="$(direnv_layout_dir)/postgres" + # export PGHOST="$PGDATA" + # + # if [[ ! -d "PGDATA" ]]; then + # initdb + # cat >> "$PGDATA/postgres.conf" <<- EOF + # listen_addresses = ''' + # unix_socket_directories = '$PGHOST' + # EOF + # echo "CREATE DATABASE $USER;" | postgres --single -E postgres + # fi + # } + # ''; + # Prevent garbage collection nix.extraOptions = '' keep-outputs = true