diff --git a/flake.nix b/flake.nix index ca00c66..bbf5101 100644 --- a/flake.nix +++ b/flake.nix @@ -4,10 +4,14 @@ inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils }: - flake-utils.lib.eachDefaultSystem (system: - { + let + exports = { nixosModules.age = import ./modules/age.nix; - packages = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {}; + }; + outputs = flake-utils.lib.eachDefaultSystem (system: { + packages = nixpkgs.legacyPackages.${system}.callPackage ./default.nix { }; defaultPackage = self.packages.${system}.agenix; }); + in + exports // outputs; }