From 0cea250fa4e57d19cef569a9d5238bec21775561 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Fri, 6 Jun 2025 16:35:53 -0300 Subject: [PATCH] chore: set environment variables on direnv enter --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index cd5974b..2ece730 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,12 @@ CGO_ENABLED = "1"; hardeningDisable = ["all"]; + shellHook = '' + set -a + source .env + set +a + ''; + buildInputs = with pkgs; [ # Go tools go