From c3628a10501b2a160e9de035e7a8c93cf30fb665 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Tue, 9 Jul 2024 15:44:52 -0500 Subject: [PATCH] Added Nix shell for dev support. --- .envrc | 1 + .gitignore | 3 +++ shell.nix | 16 ++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 shell.nix diff --git a/.envrc b/.envrc index a094d01..921e1fa 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,2 @@ export SOPS_AGE_KEY_FILE="$(expand_path ./age.key)" +use nix diff --git a/.gitignore b/.gitignore index 437c38b..4a43266 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,9 @@ # Ignore the built binary cert-manager-webhook-example +# direnv nix binaries +.direnv + # Make artifacts _out _test diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..aa7bf04 --- /dev/null +++ b/shell.nix @@ -0,0 +1,16 @@ +# Shell for bootstrapping flake-enabled nix and home-manager +{pkgs ? import {}}: +pkgs.mkShell { + # Enable experimental features without having to specify the argument + NIX_CONFIG = "experimental-features = nix-command flakes"; + + nativeBuildInputs = with pkgs; [ + git + gitleaks + go-task + pre-commit + sops + gnumake + ]; +} +