Skip to content

Commit

Permalink
feat(nix): introduce reproducible environment with flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Mar 26, 2024
1 parent 43bc947 commit 24aa7c5
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### direnv ###
.direnv
.devenv
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.cue
pkgs.dgoss
pkgs.goss
pkgs.go-task
pkgs.jq
pkgs.lefthook

# linters
pkgs.hadolint
pkgs.shellcheck
pkgs.yamllint
];
};
}
);
}

0 comments on commit 24aa7c5

Please sign in to comment.