-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
42 lines (38 loc) · 1.38 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 = "NixOS Modules for a network reliability and connectivity testing infrastructure";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }: {
nixosModules.sparky-headscale = ./profiles/sparky-headscale;
nixosModules.sparky-metrics = ./profiles/sparky-metrics;
nixosModules.sparky-probe = ./profiles/sparky-probe;
nixosModules.sparky-sd-mac = ./profiles/sparky-sd-mac;
nixosModules.sparky-tailnet = ./profiles/sparky-tailnet;
nixosModules.sparky-web = ./profiles/sparky-web;
nixosModules.sparky-ztp-image = ./profiles/sparky-ztp-image;
nixosModules.iperf3-exporter = ./modules/iperf3-exporter;
nixosModules.default = ./modules.nix;
nixosConfigurations.ci-test = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./ci/ci-nixos-config.nix
self.nixosModules.default
{
nixpkgs.overlays = [
self.overlays.default
];
}
];
};
overlays.default = (import ./pkgs);
} // flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = {
prometheus-iperf3-exporter = pkgs.callPackage ./pkgs/iperf3-exporter { };
sparky-web = pkgs.callPackage ./pkgs/sparky-web { };
};
});
}