2023-11-10 14:50:39 +00:00
|
|
|
{ withSystem, self, inputs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
mkNixosConfig = host: platform: user: {
|
|
|
|
"${host}" = self.nixos-flake.lib.mkLinuxSystem {
|
|
|
|
nixpkgs.hostPlatform = "${platform}";
|
2023-11-11 00:44:54 +00:00
|
|
|
networking.hostName = host;
|
2023-11-10 14:50:39 +00:00
|
|
|
imports = [
|
|
|
|
self.nixosModules.base
|
2023-11-11 20:17:32 +00:00
|
|
|
inputs.nixos-config.nixosHosts.${host}
|
2023-11-10 14:50:39 +00:00
|
|
|
self.nixosModules.${user}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
flake = {
|
|
|
|
nixosConfigurations = {} //
|
|
|
|
(mkNixosConfig "chonk" "x86_64-linux" "iot") //
|
|
|
|
(mkNixosConfig "companion" "aarch64-linux" "iot") //
|
|
|
|
(mkNixosConfig "cox" "aarch64-linux" "iot") //
|
|
|
|
(mkNixosConfig "cube" "x86_64-linux" "iot") //
|
|
|
|
(mkNixosConfig "falcone" "aarch64-linux" "iot") //
|
|
|
|
(mkNixosConfig "giggles" "aarch64-linux" "iot") //
|
2023-11-11 00:06:36 +00:00
|
|
|
(mkNixosConfig "harrison" "x86_64-linux" "hensoko") //
|
|
|
|
(mkNixosConfig "norman" "x86_64-linux" "hensoko") //
|
|
|
|
(mkNixosConfig "redpanda" "x86_64-linux" "hensoko") //
|
|
|
|
(mkNixosConfig "ringo" "x86_64-linux" "hensoko") //
|
|
|
|
(mkNixosConfig "surfplace" "x86_64-linux" "hensoko");
|
|
|
|
};
|
2023-11-10 14:50:39 +00:00
|
|
|
}
|