-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
30 lines (25 loc) · 879 Bytes
/
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
{
description = "Collection of infra observability tools packaged for Nix and accompanied by modules";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }@inputs:
let
# Supported systems for flake packages, shell, etc.
systems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
# This is a function that generates an attribute by calling a function you
# pass to it, with each system as an argument
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (system: import ./pkgs { pkgs = nixpkgs.legacyPackages.${system}; });
nixosModules = import ./modules/nixos;
darwinModules = import ./modules/darwin;
overlays = import ./overlays { inherit inputs; };
};
}