2020-09-03 06:49:24 +03:00
|
|
|
{
|
|
|
|
description = "Secret management with age";
|
2020-09-18 21:59:01 +03:00
|
|
|
|
2023-01-29 19:02:57 +03:00
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2021-12-04 17:49:07 +03:00
|
|
|
|
2023-01-29 19:02:57 +03:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
}: let
|
2021-05-10 01:29:34 +03:00
|
|
|
agenix = system: nixpkgs.legacyPackages.${system}.callPackage ./pkgs/agenix.nix {};
|
|
|
|
in {
|
|
|
|
nixosModules.age = import ./modules/age.nix;
|
2023-01-29 19:02:57 +03:00
|
|
|
nixosModules.default = self.nixosModules.age;
|
2021-05-10 01:29:34 +03:00
|
|
|
|
2023-01-29 19:02:57 +03:00
|
|
|
overlays.default = import ./overlay.nix;
|
2021-05-10 01:29:34 +03:00
|
|
|
|
2023-01-29 19:02:57 +03:00
|
|
|
packages.aarch64-linux.agenix = agenix "aarch64-linux";
|
|
|
|
packages.aarch64-linux.default = self.packages.aarch64-linux.agenix;
|
2021-05-10 01:29:34 +03:00
|
|
|
|
2023-01-29 19:02:57 +03:00
|
|
|
packages.i686-linux.agenix = agenix "i686-linux";
|
|
|
|
packages.i686-linux.default = self.packages.i686-linux.agenix;
|
2021-05-10 01:29:34 +03:00
|
|
|
|
2023-01-29 19:02:57 +03:00
|
|
|
packages.x86_64-darwin.agenix = agenix "x86_64-darwin";
|
|
|
|
packages.x86_64-darwin.default = self.packages.x86_64-darwin.agenix;
|
2021-05-10 01:29:34 +03:00
|
|
|
|
2023-01-29 19:02:57 +03:00
|
|
|
packages.aarch64-darwin.agenix = agenix "aarch64-darwin";
|
|
|
|
packages.aarch64-darwin.default = self.packages.aarch64-darwin.agenix;
|
2021-12-04 17:49:07 +03:00
|
|
|
|
2023-01-29 19:02:57 +03:00
|
|
|
packages.x86_64-linux.agenix = agenix "x86_64-linux";
|
|
|
|
packages.x86_64-linux.default = self.packages.x86_64-linux.agenix;
|
|
|
|
checks.x86_64-linux.integration = import ./test/integration.nix {
|
|
|
|
inherit nixpkgs;
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
system = "x86_64-linux";
|
2021-05-10 01:29:34 +03:00
|
|
|
};
|
|
|
|
};
|
2020-09-03 06:49:24 +03:00
|
|
|
}
|