Something went wrong. Try again.
ALPHA: wire is a tool to deploy nixos systems (contribution fork)
Something went wrong. Try again.
1.3 kB · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849# SPDX-License-Identifier: AGPL-3.0-or-later# Copyright 2024-2025 wire Contributors
{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { nixpkgs, self, ... }@inputs: let makeHive = import ./makeHive.nix; in { wire = makeHive { inherit (self) nixosConfigurations; meta.nixpkgs = import nixpkgs { localSystem = "x86_64-linux"; };
node-a = { }; node-b = { nixpkgs.hostPlatform = "x86_64-linux"; }; };
nixosConfigurations = { # non-hive nixosConfiguration # will fail to evaluate if this node is ever included # in the hive because this system does not specify # hostPlatform system-c = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ ]; };
# hive nixosConfiguration # its verified that these are merged because hostPlatform # must be specified, and its not specified in the hive node-a = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ { nixpkgs.hostPlatform = "x86_64-linux"; } ]; }; }; };}