-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathflake.nix
42 lines (37 loc) · 1.19 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
description = "Serokell Vault Tooling";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, ... }@inputs:
let
forSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
in
{
overlays.default = final: prev: {
vault-push-approles =
final.callPackage ./scripts/vault-push-approles.nix { };
vault-push-approle-envs =
final.callPackage ./scripts/vault-push-approle-envs.nix { };
};
nixosModules.vault-secrets = import ./modules/vault-secrets.nix;
darwinModules.vault-secrets = import ./modules/vault-secrets-darwin.nix;
checks = forSystems (system:
let
tests = import ./tests/modules/all-tests.nix {
pkgs = nixpkgs.legacyPackages.${system};
inherit system self;
callTest = t: t.test;
nixosPath = "${nixpkgs}/nixos";
};
in
{ inherit (tests) vault-secrets; });
legacyPackages = forSystems (system:
nixpkgs.legacyPackages.${system}.extend
self.overlays.default);
};
}