71 lines
2.4 KiB
Nix
71 lines
2.4 KiB
Nix
{
|
|
description = "Clan flake for controlling NewEdge infrastructure.";
|
|
inputs = {
|
|
clan-core = {
|
|
url = "git+https://git.clan.lol/clan/clan-core";
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
inputs.treefmt-nix.follows = "treefmt-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
devshell = {
|
|
url = "github:numtide/devshell";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
flake-parts = {
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
url = "github:hercules-ci/flake-parts";
|
|
};
|
|
import-tree.url = "github:vic/import-tree";
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
treefmt-nix = {
|
|
url = "github:numtide/treefmt-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
liminix = {
|
|
url = "git+https://gti.telent.net/dan/liminix?ref=refs/heads/main&rev=29fbb5461d034c4c59b88cbe04937b04ecad18e0";
|
|
# url = "path:/home/kurogeek/Desktop/gitea/dan/liminix";
|
|
flake = false;
|
|
};
|
|
};
|
|
outputs =
|
|
{
|
|
flake-parts,
|
|
...
|
|
}@inputs:
|
|
flake-parts.lib.mkFlake { inherit inputs; } (
|
|
{ ... }:
|
|
{
|
|
systems = [
|
|
"x86_64-linux"
|
|
];
|
|
|
|
flake.legacyPackages.qemu-router = import "${inputs.liminix}/default.nix" {
|
|
liminix-config = import "${inputs.liminix}/examples/hello-from-qemu.nix";
|
|
device = (import "${inputs.liminix}/devices/qemu-aarch64/default.nix");
|
|
};
|
|
flake.legacyPackages.yada-router = import "${inputs.liminix}/default.nix" {
|
|
liminix-config = import ./routers/yada-house/configuration.nix { inherit inputs; };
|
|
device = (import ./routers/yada-house/device.nix { inherit inputs; });
|
|
};
|
|
flake.legacyPackages.qemu-flake = import "${inputs.liminix}/default.nix" {
|
|
liminix-config = import ./routers/qemu/configuration.nix { inherit inputs; };
|
|
device = (import ./routers/qemu/device.nix { inherit inputs; });
|
|
};
|
|
flake.legacyPackages.vanilla = import "${inputs.liminix}/default.nix" {
|
|
liminix-config = import ./routers/vanilla/configuration.nix { inherit inputs; };
|
|
device = (import "${inputs.liminix}/devices/gl-mt300a/default.nix");
|
|
};
|
|
|
|
imports = [
|
|
./fmt.nix
|
|
./shell.nix
|
|
|
|
./machines
|
|
./routers
|
|
./inventories
|
|
./modules/clan/flake-module.nix
|
|
];
|
|
}
|
|
);
|
|
}
|