nixos-config/hosts/default.nix
2022-06-16 23:30:12 -04:00

20 lines
539 B
Nix

hardware: nixosModule:
with hardware;
builtins.mapAttrs
(name: { system, mods }: {
inherit system;
modules = mods ++ [
nixosModule
{ networking.hostName = name; }
];
})
{
cube = { system = "x86_64-linux"; mods = [ physical ./cube ]; };
hp = { system = "x86_64-linux"; mods = [ physical ./hp ]; };
lenny = { system = "x86_64-linux"; mods = [ physical ./lenny ]; };
nixdev = { system = "x86_64-linux"; mods = [ qemu ./nixdev ]; };
slate = { system = "x86_64-linux"; mods = [ physical ./slate ]; };
}