30 lines
703 B
Nix
30 lines
703 B
Nix
{ inputs }:
|
|
|
|
let
|
|
modules = import ../modules;
|
|
|
|
mkHost = name: extraModules:
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./common.nix
|
|
./placeholder-hardware.nix
|
|
inputs.sops-nix.nixosModules.sops
|
|
modules.gebos-secrets
|
|
modules.gebos-postgres
|
|
modules.gebos-supabase
|
|
modules.gebos-caddy
|
|
modules.gebos-hivemq
|
|
modules.gebos-ingester
|
|
modules.gebos-frontend
|
|
./${name}.nix
|
|
] ++ extraModules;
|
|
};
|
|
in
|
|
{
|
|
db-host = mkHost "db-host" [ ];
|
|
app-host = mkHost "app-host" [ ];
|
|
mqtt-ingest = mkHost "mqtt-ingest" [ ];
|
|
}
|