feat: make nh host selection automatic
This commit is contained in:
+6
-1
@@ -5,6 +5,11 @@ rec {
|
||||
x1carbon = import ./x1carbon inputs;
|
||||
fungus = import ./fungus inputs;
|
||||
};
|
||||
nixos = builtins.mapAttrs (_: host: host.nixos) hosts;
|
||||
nixos = builtins.listToAttrs (
|
||||
map (host: {
|
||||
name = host.hostname;
|
||||
value = host.nixos;
|
||||
}) (builtins.attrValues hosts)
|
||||
);
|
||||
home-manager = builtins.foldl' (a: b: a // b) { } (map (h: h.home-manager) (builtins.attrValues hosts));
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit hostname;
|
||||
|
||||
nixos = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules =
|
||||
systemModules
|
||||
|
||||
Reference in New Issue
Block a user