Added Nix shell for dev support.
All checks were successful
/ test (push) Successful in 2m29s

This commit is contained in:
Joseph Hanson 2024-07-09 15:44:52 -05:00
parent 6cc74ba970
commit c3628a1050
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
3 changed files with 20 additions and 0 deletions

1
.envrc
View file

@ -1 +1,2 @@
export SOPS_AGE_KEY_FILE="$(expand_path ./age.key)" export SOPS_AGE_KEY_FILE="$(expand_path ./age.key)"
use nix

3
.gitignore vendored
View file

@ -14,6 +14,9 @@
# Ignore the built binary # Ignore the built binary
cert-manager-webhook-example cert-manager-webhook-example
# direnv nix binaries
.direnv
# Make artifacts # Make artifacts
_out _out
_test _test

16
shell.nix Normal file
View file

@ -0,0 +1,16 @@
# Shell for bootstrapping flake-enabled nix and home-manager
{pkgs ? import <nixpkgs> {}}:
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
];
}