diff options
author | Franck Cuny <franck@fcuny.net> | 2024-12-14 09:45:26 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-12-14 09:45:26 -0800 |
commit | d96eda0e683d53779d9ebae53d7897d96216511a (patch) | |
tree | bf60429c483c25f59f1628e376b11cc5154ce43f /flake.nix | |
parent | add docstring to justfile (diff) | |
download | world-d96eda0e683d53779d9ebae53d7897d96216511a.tar.gz |
use agenix to manage secrets in the repository
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 28 |
1 files changed, 24 insertions, 4 deletions
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"; |