File tree 2 files changed +14
-1
lines changed 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 71
71
72
72
inspect = {
73
73
inherit path ;
74
- nodes = builtins . mapAttrs ( _ : v : v . config . deployment ) nodes ;
74
+ nodes = builtins . mapAttrs (
75
+ _ : v :
76
+ v . config . deployment
77
+ // {
78
+ # Necessary for the agent so it can know what architecture it should push to
79
+ inherit ( v . config . nixpkgs . hostPlatform ) system ;
80
+ }
81
+ ) nodes ;
75
82
} ;
76
83
}
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ pub struct Node {
57
57
58
58
#[ serde( rename( deserialize = "_keys" , serialize = "keys" ) ) ]
59
59
pub keys : im:: Vector < Key > ,
60
+
61
+ #[ serde( ) ]
62
+ // system is the architecture of the host, this is mainly used for
63
+ // determining the correct binary to push to the host's machine.
64
+ pub system : Option < String > ,
60
65
}
61
66
62
67
impl Default for Node {
@@ -67,6 +72,7 @@ impl Default for Node {
67
72
tags : im:: HashSet :: new ( ) ,
68
73
allow_local_deployment : true ,
69
74
build_remotely : false ,
75
+ system : None ,
70
76
}
71
77
}
72
78
}
You can’t perform that action at this time.
0 commit comments