nixos-config/hosts/default.nix

21 lines
539 B
Nix
Raw Normal View History

2022-06-17 03:30:12 +00:00
hardware: nixosModule:
2021-12-10 06:34:46 +00:00
with hardware;
2022-06-16 03:20:48 +00:00
builtins.mapAttrs
2022-06-17 03:30:12 +00:00
(name: { system, mods }: {
2021-12-21 19:26:36 +00:00
inherit system;
2022-06-16 03:20:48 +00:00
modules = mods ++ [
nixosModule
{ networking.hostName = name; }
];
})
2021-12-10 06:34:46 +00:00
{
2022-06-16 03:20:48 +00:00
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 ]; };
2021-12-10 06:34:46 +00:00
}