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

17 lines
447 B
Nix

{
lib,
outputs,
}:
let
specialExpected = {
"shoukei-niri" = "shoukei";
};
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)