refactor flaken.nix hive handling

This commit is contained in:
steveej 2024-01-22 23:47:36 +00:00
parent 3b7a80ef03
commit c95e82b19a

View file

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