Skip to content

Commit 4e67312

Browse files
committed
fix(laptop): increase net-vm memory for darp11 storeDisk configs
The `system76-darp11-b-storeDisk` targets were using the default net-vm memory (512 MiB). With `virtualization.microvm.storeOnDisk = true`, sysvms boot from EROFS-backed store disks, which increases page-cache/readahead pressure during early boot. On darp11 this can starve net-vm memory enough to cause Wi-Fi bring-up instability (`iwlwifi ... Unable to init nic`) while the system is under heavy EROFS read activity. Set a target-specific override: - `vmConfig.sysvms.netvm.mem = 1024` for both: - `system76-darp11-b-storeDisk-debug` - `system76-darp11-b-storeDisk-release` This keeps the change scoped to storeDisk variants of this hardware and avoids altering global installer or base VM defaults. Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
1 parent 940ab0b commit 4e67312

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

targets/laptop/flake-module.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ let
326326
}
327327
];
328328
};
329+
vmConfig = {
330+
# storeOnDisk enables EROFS-backed stores in sysvms and increases
331+
# page-cache/readahead pressure during boot; give net-vm more headroom.
332+
sysvms.netvm.mem = 1024;
333+
};
329334
})
330335

331336
(ghaf-configuration {
@@ -578,6 +583,11 @@ let
578583
}
579584
];
580585
};
586+
vmConfig = {
587+
# storeOnDisk enables EROFS-backed stores in sysvms and increases
588+
# page-cache/readahead pressure during boot; give net-vm more headroom.
589+
sysvms.netvm.mem = 1024;
590+
};
581591
})
582592
# keep-sorted end
583593
];

0 commit comments

Comments
 (0)