mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-16 05:21:01 +01:00
Colmena deployments now ship the same toplevel as nixosConfigurations: nodes gain the nixpkgs registry, nixPath and dated version, and akane no longer gets the x86_64 dsh. Assisted-by: DeepSeek Harness 0.2.1-rc.2 (claude-opus-5-5)
38 lines
886 B
Nix
38 lines
886 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
...
|
|
}@args:
|
|
let
|
|
inherit (inputs) haumea;
|
|
|
|
# Contains all the flake outputs of this system architecture.
|
|
data = haumea.lib.load {
|
|
src = ./src;
|
|
inputs = args;
|
|
};
|
|
# nix file names is redundant, so we remove it.
|
|
dataWithoutPaths = builtins.attrValues data;
|
|
|
|
# Merge all the machine's data into a single attribute set.
|
|
outputs = {
|
|
nixosConfigurations = lib.attrsets.mergeAttrsList (
|
|
map (it: it.nixosConfigurations or { }) dataWithoutPaths
|
|
);
|
|
packages = lib.attrsets.mergeAttrsList (map (it: it.packages or { }) dataWithoutPaths);
|
|
colmena = lib.attrsets.mergeAttrsList (map (it: it.colmena or { }) dataWithoutPaths);
|
|
};
|
|
in
|
|
outputs
|
|
// {
|
|
inherit data; # for debugging purposes
|
|
|
|
# NixOS's unit tests.
|
|
evalTests = haumea.lib.loadEvalTests {
|
|
src = ./tests;
|
|
inputs = args // {
|
|
inherit outputs;
|
|
};
|
|
};
|
|
}
|