Fix: hostPlatform not hostSystem

This commit is contained in:
Johannes Kirschbauer
2024-07-23 11:29:45 +02:00
parent a294c6d454
commit c6466f070e

View File

@@ -58,11 +58,11 @@ let
{ {
# { ${name} :: meta // { name, tags } } # { ${name} :: meta // { name, tags } }
machines = lib.mapAttrs ( machines = lib.mapAttrs (
name: config: name: machineConfig:
(lib.attrByPath [ (lib.attrByPath [
"clan" "clan"
"meta" "meta"
] { } config) ] { } machineConfig)
// { // {
# meta.name default is the attribute name of the machine # meta.name default is the attribute name of the machine
name = lib.mkDefault ( name = lib.mkDefault (
@@ -70,11 +70,11 @@ let
"clan" "clan"
"meta" "meta"
"name" "name"
] name config ] name machineConfig
); );
} }
# tags # tags
// (clanToInventory config { // (clanToInventory machineConfig {
clanPath = [ clanPath = [
"clan" "clan"
"tags" "tags"
@@ -82,15 +82,15 @@ let
inventoryPath = [ "tags" ]; inventoryPath = [ "tags" ];
}) })
# system # system
// (clanToInventory config { // (clanToInventory machineConfig {
clanPath = [ clanPath = [
"nixpkgs" "nixpkgs"
"hostSystem" "hostPlatform"
]; ];
inventoryPath = [ "system" ]; inventoryPath = [ "system" ];
}) })
# deploy.targetHost # deploy.targetHost
// (clanToInventory config { // (clanToInventory machineConfig {
clanPath = [ clanPath = [
"clan" "clan"
"core" "core"