Set system.name from systems key

This commit is contained in:
Jack O'Sullivan 2022-02-13 13:48:11 +00:00
parent 69c508ea07
commit 0905611700

View File

@ -26,7 +26,13 @@ let
nixosSystem' {
inherit lib system;
specialArgs = { inherit inputs system; };
modules = attrValues modules ++ [ { networking.hostName = mkDefault name; } config ];
modules = attrValues modules ++ [
{
system.name = name;
networking.hostName = mkDefault name;
}
config
];
};
in
mapAttrs mkSystem {