mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 20:40:24 +01:00
17 lines
447 B
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)
|