From a19244538e81f9be6080ad4f3a665301eaf5df14 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 17 Nov 2024 10:43:45 +0100 Subject: Add unconfigured agenix flake Signed-off-by: Mel --- flake.nix | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 25e94d1..8cef25b 100644 --- a/flake.nix +++ b/flake.nix @@ -9,10 +9,16 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + agenix = { + url = "github:ryantm/agenix"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.home-manager.follows = "home-manager"; + }; + flake-compat.url = "github:edolstra/flake-compat"; }; - outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, home-manager, ... }: + outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, agenix, home-manager, ... }: let system = "x86_64-linux"; @@ -20,12 +26,16 @@ "graphite" "bismuth" ]; - + + overlays = [ agenix.overlays.default ]; + packageSets = let - pkgsInputs = { inherit system; config = import ./config.nix; }; + commonPkgsInputs = { inherit system; config = import ./config.nix; }; in rec { - pkgs = import nixpkgs pkgsInputs; - unstablePkgs = import nixpkgs-unstable pkgsInputs; + pkgs = import nixpkgs (commonPkgsInputs // { inherit overlays; }); + + unstablePkgs = import nixpkgs-unstable commonPkgsInputs; + auxiliaryPkgs = import ./pkgs { inherit pkgs unstablePkgs; }; }; @@ -40,12 +50,14 @@ modules = [ ./machines/${machine} - + home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.mel = import ./machines/${machine}/home.nix; } + + agenix.nixosModules.default ]; } ); -- cgit 1.4.1