From d96eda0e683d53779d9ebae53d7897d96216511a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 14 Dec 2024 09:45:26 -0800 Subject: use agenix to manage secrets in the repository --- flake.nix | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 90a217f..83db950 100644 --- a/flake.nix +++ b/flake.nix @@ -20,17 +20,33 @@ }; flake-utils.url = "github:numtide/flake-utils"; + pre-commit-hooks = { url = "github:cachix/pre-commit-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; }; - devshell.url = "github:numtide/devshell"; - devshell.inputs.nixpkgs.follows = "nixpkgs"; + + devshell = { + url = "github:numtide/devshell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + agenix = { + url = "github:ryantm/agenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; # Output config, or config for NixOS system outputs = - { nixpkgs, darwin, flake-utils, pre-commit-hooks, devshell, ... }@inputs: + { nixpkgs + , darwin + , flake-utils + , pre-commit-hooks + , devshell + , agenix + , ... + }@inputs: flake-utils.lib.eachDefaultSystem (system: let @@ -53,7 +69,11 @@ }; devShells.default = pkgs.devshell.mkShell { - packages = with pkgs; [ just ]; + packages = with pkgs; [ + just + agenix + inputs.agenix.packages."${system}".default + ]; env = [{ name = "DEVSHELL_NO_MOTD"; value = "1"; -- cgit 1.4.1