Files
nix-config/outputs/x86_64-linux/tests/hostname/expected.nix

17 lines
437 B
Nix

{
lib,
outputs,
}:
let
specialExpected = {
"ai-niri" = "ai";
};
specialHostNames = builtins.attrNames specialExpected;
otherHosts = builtins.removeAttrs outputs.nixosConfigurations specialHostNames;
otherHostsNames = builtins.attrNames otherHosts;
# other hosts's hostName is the same as the nixosConfigurations name
otherExpected = lib.genAttrs otherHostsNames (name: name);
in
(specialExpected // otherExpected)