From d3504d45743b84d0d3f1a378ac25288e1dc3083e Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Fri, 21 Jun 2024 15:58:42 -0500 Subject: [PATCH] Adding nix shell --- .gitignore | 1 + shell.nix | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 8c25628..f366993 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_Store Thumbs.db +.direnv .private/ .venv/ .terraform diff --git a/shell.nix b/shell.nix index 5149c5d..f6b64d4 100644 --- a/shell.nix +++ b/shell.nix @@ -1,9 +1,16 @@ -{ pkgs ? import {}}: - +# Shell for bootstrapping flake-enabled nix and home-manager +{pkgs ? import {}}: pkgs.mkShell { - packages = [ - pkgs.k9s - pkgs.kubectl - pkgs.kubevirt + # Enable experimental features without having to specify the argument + NIX_CONFIG = "experimental-features = nix-command flakes"; + + nativeBuildInputs = with pkgs; [ + git + go-task + sops + pre-commit + gitleaks + k9s + kubectl ]; }