refactor flaken.nix hive handling

This commit is contained in:
steveej 2024-01-22 23:47:36 +00:00
parent ed4768a795
commit 82362958db

View file

@ -145,13 +145,14 @@
# this makes nixos-anywhere work # this makes nixos-anywhere work
flake.nixosConfigurations = flake.nixosConfigurations =
(inputs.colmena.lib.makeHive self.outputs.colmena).nodes
// (
let let
colmenaHive = (inputs.colmena.lib.makeHive self.outputs.colmena).nodes;
router0-dmz0 = (inputs.get-flake ./nix/os/devices/router0-dmz0).nixosConfigurations; router0-dmz0 = (inputs.get-flake ./nix/os/devices/router0-dmz0).nixosConfigurations;
steveej-x13s = (inputs.get-flake ./nix/os/devices/steveej-x13s).nixosConfigurations;
retro = (inputs.get-flake ./nix/os/devices/retro).nixosConfigurations; retro = (inputs.get-flake ./nix/os/devices/retro).nixosConfigurations;
in in
(
colmenaHive //
{ {
router0-dmz0 = router0-dmz0.native; router0-dmz0 = router0-dmz0.native;
@ -162,7 +163,7 @@
# nixos-install --flake .\#retro_cross # nixos-install --flake .\#retro_cross
retro_cross = retro.cross; retro_cross = retro.cross;
steveej-x13s_cross = steveej-x13s.cross; steveej-x13s_cross = (inputs.get-flake ./nix/os/devices/steveej-x13s).nixosConfigurations.cross;
} }
); );