2020-09-03 05:49:24 +02:00
|
|
|
{
|
|
|
|
description = "Secret management with age";
|
2020-09-18 20:59:01 +02:00
|
|
|
|
2021-12-04 15:49:07 +01:00
|
|
|
inputs = {
|
2022-10-15 19:41:44 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2021-12-04 15:49:07 +01:00
|
|
|
};
|
|
|
|
|
2021-05-10 00:29:34 +02:00
|
|
|
outputs = { self, nixpkgs }:
|
|
|
|
let
|
|
|
|
agenix = system: nixpkgs.legacyPackages.${system}.callPackage ./pkgs/agenix.nix {};
|
|
|
|
in {
|
|
|
|
|
|
|
|
nixosModules.age = import ./modules/age.nix;
|
2022-02-28 18:38:21 +01:00
|
|
|
nixosModule = self.nixosModules.age;
|
2021-05-10 00:29:34 +02:00
|
|
|
|
|
|
|
overlay = import ./overlay.nix;
|
|
|
|
|
|
|
|
packages."aarch64-linux".agenix = agenix "aarch64-linux";
|
|
|
|
defaultPackage."aarch64-linux" = self.packages."aarch64-linux".agenix;
|
|
|
|
|
|
|
|
packages."i686-linux".agenix = agenix "i686-linux";
|
|
|
|
defaultPackage."i686-linux" = self.packages."i686-linux".agenix;
|
|
|
|
|
|
|
|
packages."x86_64-darwin".agenix = agenix "x86_64-darwin";
|
|
|
|
defaultPackage."x86_64-darwin" = self.packages."x86_64-darwin".agenix;
|
|
|
|
|
2021-12-04 15:49:07 +01:00
|
|
|
packages."aarch64-darwin".agenix = agenix "aarch64-darwin";
|
|
|
|
defaultPackage."aarch64-darwin" = self.packages."aarch64-darwin".agenix;
|
|
|
|
|
2021-05-10 00:29:34 +02:00
|
|
|
packages."x86_64-linux".agenix = agenix "x86_64-linux";
|
|
|
|
defaultPackage."x86_64-linux" = 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";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2020-09-03 05:49:24 +02:00
|
|
|
}
|