From 27642dc30739f8e88a5b8d26c1a1c38aa887689a Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 5 Jul 2024 12:43:53 +0300 Subject: [PATCH] Add devShell with agenix and colmena --- .envrc | 2 ++ .gitignore | 1 + flake.nix | 10 +++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..0f94eed --- /dev/null +++ b/.envrc @@ -0,0 +1,2 @@ +# shellcheck shell=bash +use flake diff --git a/.gitignore b/.gitignore index 9237589..f069e42 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ result .gcroots config.tf.json +.direnv \ No newline at end of file diff --git a/flake.nix b/flake.nix index 1410682..a5b3347 100644 --- a/flake.nix +++ b/flake.nix @@ -57,7 +57,15 @@ ''); }; }; - defaultApp.${system} = self.apps.${system}.apply; + apps.${system}.default = self.apps.${system}.apply; + + devShells.${system}.default = pkgs.mkShell { + packages = [ + inputs.agenix.packages.${system}.agenix + inputs.colmena.packages.${system}.colmena + ]; + }; + colmena = { meta.nixpkgs = import nixpkgs { localSystem = system;