From 8fa207a8dd4c435c798c3954e4d83044ce3b5418 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 31 May 2022 15:46:57 +0200 Subject: [PATCH] Work-related updates --- config/direnv/direnvrc | 5 +++++ programs/fish.nix | 2 ++ programs/ssh.nix | 7 +++++++ 3 files changed, 14 insertions(+) diff --git a/config/direnv/direnvrc b/config/direnv/direnvrc index 12f7f5b..4435342 100644 --- a/config/direnv/direnvrc +++ b/config/direnv/direnvrc @@ -40,6 +40,11 @@ project_node() { PATH_add node_modules/.bin } +project_python() { + export POETRY_HOME=$(direnv_layout_dir)/poetry/data + export POETRY_CACHE_DIR=$(direnv_layout_dir)/poetry/cache +} + project_ruby() { export GEM_HOME=$(direnv_layout_dir)/gem export BUNDLE_USER_HOME=$(direnv_layout_dir)/bundle diff --git a/programs/fish.nix b/programs/fish.nix index 48ff5e6..c018b61 100644 --- a/programs/fish.nix +++ b/programs/fish.nix @@ -91,6 +91,8 @@ mysqld-direnv-init = "mysql_install_db --user $USER --datadir=$PWD/.direnv/mysql/data --auth-root-authentication-method=normal"; mysqld-direnv = "mysqld --datadir=$PWD/.direnv/mysql/data --bind-address=127.0.0.1 --socket=$PWD/.direnv/mysql/mysqld.sock --gdb"; + postgres-direnv-init = "initdb --username $USER --pgdata $PWD/.direnv/postgres/data --auth trust"; + postgres-direnv = "postgres -D $PWD/.direnv/postgres/data"; redis-direnv = "redis-server --dir $PWD/.direnv/redis --bind 127.0.0.1"; }; diff --git a/programs/ssh.nix b/programs/ssh.nix index 62e62c5..c3a4751 100644 --- a/programs/ssh.nix +++ b/programs/ssh.nix @@ -39,6 +39,13 @@ in identitiesOnly = true; }; + "msc.nedeco.local" = { + port = 22; + user = "root"; + identityFile = "~/.ssh/nedeco.pub"; + identitiesOnly = true; + }; + # Private "github.com" = {