2020-09-03 05:49:24 +02:00
|
|
|
{
|
|
|
|
description = "Secret management with age";
|
2020-09-18 20:59:01 +02:00
|
|
|
|
2023-01-29 23:42:58 +01:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
darwin = {
|
|
|
|
url = "github:lnl7/nix-darwin/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-04-23 12:22:03 +02:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-01-29 23:42:58 +01:00
|
|
|
};
|
2021-12-04 15:49:07 +01:00
|
|
|
|
2023-01-29 17:02:57 +01:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2023-01-29 23:42:58 +01:00
|
|
|
darwin,
|
2023-04-23 12:22:03 +02:00
|
|
|
home-manager,
|
2023-01-29 17:02:57 +01:00
|
|
|
}: let
|
2021-05-10 00:29:34 +02:00
|
|
|
agenix = system: nixpkgs.legacyPackages.${system}.callPackage ./pkgs/agenix.nix {};
|
2023-02-26 23:17:37 +01:00
|
|
|
doc = system: nixpkgs.legacyPackages.${system}.callPackage ./pkgs/doc.nix {};
|
2021-05-10 00:29:34 +02:00
|
|
|
in {
|
|
|
|
nixosModules.age = import ./modules/age.nix;
|
2023-01-29 17:02:57 +01:00
|
|
|
nixosModules.default = self.nixosModules.age;
|
2021-05-10 00:29:34 +02:00
|
|
|
|
2023-01-29 23:42:58 +01:00
|
|
|
darwinModules.age = import ./modules/age.nix;
|
|
|
|
darwinModules.default = self.darwinModules.age;
|
|
|
|
|
2023-04-22 21:24:07 +02:00
|
|
|
homeManagerModules.age = import ./modules/age-home.nix;
|
|
|
|
homeManagerModules.default = self.homeManagerModules.age;
|
|
|
|
|
2023-01-29 17:02:57 +01:00
|
|
|
overlays.default = import ./overlay.nix;
|
2021-05-10 00:29:34 +02:00
|
|
|
|
2023-01-29 17:27:20 +01:00
|
|
|
formatter.x86_64-darwin = nixpkgs.legacyPackages.x86_64-darwin.alejandra;
|
2023-01-29 17:02:57 +01:00
|
|
|
packages.x86_64-darwin.agenix = agenix "x86_64-darwin";
|
2023-02-26 23:17:37 +01:00
|
|
|
packages.x86_64-darwin.doc = doc "x86_64-darwin";
|
2023-01-29 17:02:57 +01:00
|
|
|
packages.x86_64-darwin.default = self.packages.x86_64-darwin.agenix;
|
2021-05-10 00:29:34 +02:00
|
|
|
|
2023-01-29 17:27:20 +01:00
|
|
|
formatter.aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.alejandra;
|
2023-01-29 17:02:57 +01:00
|
|
|
packages.aarch64-darwin.agenix = agenix "aarch64-darwin";
|
2023-02-26 23:17:37 +01:00
|
|
|
packages.aarch64-darwin.doc = doc "aarch64-darwin";
|
2023-01-29 17:02:57 +01:00
|
|
|
packages.aarch64-darwin.default = self.packages.aarch64-darwin.agenix;
|
2021-12-04 15:49:07 +01:00
|
|
|
|
2023-01-29 17:27:20 +01:00
|
|
|
formatter.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.alejandra;
|
|
|
|
packages.aarch64-linux.agenix = agenix "aarch64-linux";
|
2023-02-26 23:17:37 +01:00
|
|
|
packages.aarch64-linux.doc = doc "aarch64-linux";
|
2023-01-29 17:27:20 +01:00
|
|
|
packages.aarch64-linux.default = self.packages.aarch64-linux.agenix;
|
|
|
|
|
|
|
|
formatter.i686-linux = nixpkgs.legacyPackages.i686-linux.alejandra;
|
|
|
|
packages.i686-linux.agenix = agenix "i686-linux";
|
2023-02-26 23:17:37 +01:00
|
|
|
packages.i686-linux.doc = doc "i686-linux";
|
2023-01-29 17:27:20 +01:00
|
|
|
packages.i686-linux.default = self.packages.i686-linux.agenix;
|
|
|
|
|
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
2023-01-29 17:02:57 +01:00
|
|
|
packages.x86_64-linux.agenix = agenix "x86_64-linux";
|
|
|
|
packages.x86_64-linux.default = self.packages.x86_64-linux.agenix;
|
2023-02-26 23:17:37 +01:00
|
|
|
packages.x86_64-linux.doc = doc "x86_64-linux";
|
2023-01-29 17:02:57 +01:00
|
|
|
checks.x86_64-linux.integration = import ./test/integration.nix {
|
2023-04-23 12:22:35 +02:00
|
|
|
inherit nixpkgs home-manager;
|
2023-01-29 17:02:57 +01:00
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
system = "x86_64-linux";
|
2021-05-10 00:29:34 +02:00
|
|
|
};
|
2023-01-29 23:42:58 +01:00
|
|
|
checks."aarch64-darwin".integration =
|
|
|
|
(darwin.lib.darwinSystem {
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
modules = [./test/integration_darwin.nix "${darwin.outPath}/pkgs/darwin-installer/installer.nix"];
|
|
|
|
})
|
|
|
|
.system;
|
|
|
|
checks."x86_64-darwin".integration =
|
|
|
|
(darwin.lib.darwinSystem {
|
|
|
|
system = "x86_64-darwin";
|
|
|
|
modules = [./test/integration_darwin.nix "${darwin.outPath}/pkgs/darwin-installer/installer.nix"];
|
|
|
|
})
|
|
|
|
.system;
|
|
|
|
|
|
|
|
darwinConfigurations.integration.system = self.checks."x86_64-darwin".integration;
|
2021-05-10 00:29:34 +02:00
|
|
|
};
|
2020-09-03 05:49:24 +02:00
|
|
|
}
|