-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
34 lines (31 loc) · 1.06 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
{
description = "hashinixpkgs";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } {
flake = { };
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { pkgs, lib, ... }: {
packages =
let
buildGoModule = (pkgs.buildGoModule.override {
go = pkgs.buildPackages.go_1_23;
});
fetchFromGitHub = pkgs.fetchFromGitHub;
in
((import ./nomad_versions.nix) { inherit lib buildGoModule fetchFromGitHub; }) //
((import ./consul_versions.nix) { inherit lib buildGoModule fetchFromGitHub; });
};
};
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
"https://cache.garnix.io/"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
};
}