Files
nix-config/outputs/aarch64-linux/tests/hostname/expected.nix
2025-08-20 00:03:25 +08:00

18 lines
483 B
Nix

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