-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
44 lines (39 loc) · 1.11 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
43
44
{
description = "Safe application helm charts";
inputs = {
flake-parts.url = github:hercules-ci/flake-parts;
nixpkgs.url = github:NixOS/nixpkgs/master;
};
outputs = { self, nixpkgs, flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
perSystem = { config, lib, self', inputs', system, ... }:
let
overlays = [];
pkgs = import nixpkgs {
inherit system overlays;
};
# utils
utilsPkgs = with pkgs; [
yamllint
yamlfix
yq-go
];
k8sPkgs = with pkgs; [
(pkgs.wrapHelm pkgs.kubernetes-helm {
plugins = [
pkgs.kubernetes-helmPlugins.helm-diff
];
})
];
buildDevShell = pkgs.mkShell {
packages = utilsPkgs ++ k8sPkgs;
};
defaultDevShell = buildDevShell;
in
{
devShells.default = defaultDevShell;
};
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
flake = { };
};
}