From 8798940cad00296d3a9e88988e6678eef670d21a Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sat, 30 Sep 2023 12:09:19 +0200 Subject: Move secret management to agenix - https://nixos.wiki/wiki/Agenix - https://github.com/ryantm/agenix - https://jonascarpay.com/posts/2021-07-27-agenix.html --- flake.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index cbad259..969c3c6 100644 --- a/flake.nix +++ b/flake.nix @@ -11,9 +11,13 @@ url = "github:LnL7/nix-darwin"; inputs.nixpkgs.follows = "nixpkgs"; }; + agenix = { + url = "github:ryantm/agenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { self, nixpkgs, home-manager, nix-darwin, ... }@inputs: + outputs = { self, nixpkgs, home-manager, nix-darwin, agenix, ... }@inputs: let args = { inherit self; @@ -33,7 +37,6 @@ ./hosts/common.nix ./home # FIXME: Get the following to work without nix-darwin bithcing about unused NixOS options. - # ./lib # ./modules # ./services ]; @@ -46,10 +49,10 @@ modules = [ { _module.args = args; } home-manager.nixosModules.home-manager + agenix.nixosModules.default ./hosts/ahmed/configuration.nix ./hosts/common.nix ./home - ./lib ./modules ./services ]; -- cgit v1.2.3