diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 24 |
1 files changed, 18 insertions, 6 deletions
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 ]; } ); |
