-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
36 lines (32 loc) · 1.24 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
{
description = "Nix-based SON-IX related infrastructure";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
base-profile.url = "git+ssh://[email protected]/wobcom/nix/base-profile.git?ref=master-24.05";
base-profile.flake = false;
colmena.url = "github:zhaofengli/colmena/stable";
colmena.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, colmena, flake-utils, ... }@inputs: {
colmena = import ./hive.nix inputs;
nixosConfigurations = (colmena.lib.makeHive self.outputs.colmena).nodes;
} // flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
py-radix = pkgs.callPackage ./packages/py-radix.nix { };
aggregate6 = pkgs.callPackage ./packages/aggregate6.nix { inherit py-radix; };
arouteserver = pkgs.callPackage ./packages/arouteserver.nix { inherit aggregate6; };
arouteserver-defaults = pkgs.callPackage ./packages/arouteserver-defaults.nix { inherit arouteserver; };
};
devShells.default = pkgs.mkShell {
name = "sonixify-shell";
buildInputs = [
pkgs.sops
pkgs.colmena
pkgs.ssh-to-age
];
};
});
}