2024-08-30 03:49:18 +02:00
|
|
|
{ inputs, self, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.nix-topology.flakeModule
|
|
|
|
];
|
|
|
|
|
|
|
|
# todo : create apps to make live easier
|
|
|
|
# nix build .#topology.x86_64-linux.config.output
|
|
|
|
|
|
|
|
perSystem =
|
|
|
|
{
|
2024-08-30 09:18:21 +02:00
|
|
|
system,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
|
|
|
|
apps.topology = {
|
|
|
|
type = "app";
|
|
|
|
program = pkgs.writers.writeBashBin "topology" ''
|
|
|
|
${lib.getExe pkgs.nix} build ${self}#topology.${system}.config.output
|
|
|
|
echo "result"
|
|
|
|
ls -lah ./result
|
|
|
|
ls -lah ./result/
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-08-30 03:49:18 +02:00
|
|
|
topology.pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ inputs.nix-topology.overlays.default ];
|
|
|
|
};
|
|
|
|
topology.modules = [
|
|
|
|
{
|
|
|
|
# Inline module to inform topology of your existing NixOS hosts.
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|