We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1a01bf commit af5a074Copy full SHA for af5a074
1 file changed
os/flake.nix
@@ -220,12 +220,15 @@
220
if (builtins.pathExists ./network-config) then
221
builtins.fromJSON (builtins.readFile ./network-config)
222
else
223
- { };
+ {
224
+ address = [ ];
225
+ route = [ ];
226
+ };
227
network-config = builtins.map (address: {
228
name = address.address;
229
value = {
- ip = builtins.map (ip: { address = "${ip.local}/${ip.prefixlen}"; }) (
- builtins.filter (ip: ip.scope == "global" && !ip.dynamic) address.addr_info
230
+ ip = builtins.map (ip: { address = "${ip.local}/${builtins.toString ip.prefixlen}"; }) (
231
+ builtins.filter (ip: ip.scope == "global" && !(ip.dynamic or false)) address.addr_info
232
);
233
route =
234
builtins.map
0 commit comments