feat: add shorthand to build system toplevel derivation nix build .#@.<node>

This commit is contained in:
oddlama 2023-09-19 17:15:56 +02:00
parent eb302ea61e
commit 35309bb193
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -139,6 +139,8 @@
# All nixosSystem instanciations are collected here, so that we can refer # All nixosSystem instanciations are collected here, so that we can refer
# to any system via nodes.<name> # to any system via nodes.<name>
nodes = self.colmenaNodes // self.microvmNodes; nodes = self.colmenaNodes // self.microvmNodes;
# Add a shorthand to easily target toplevel derivations
"@" = lib.mapAttrs (_: v: v.config.system.build.toplevel) self.nodes;
# For each true NixOS system, we want to expose an installer package that # For each true NixOS system, we want to expose an installer package that
# can be used to do the initial setup on the node from a live environment. # can be used to do the initial setup on the node from a live environment.