Skip to content

Commit 8663d7e

Browse files
committed
Add intel-laptop-low-mem target
Signed-off-by: Yuri Nesterov <yuriy.nesterov@unikie.com>
1 parent 73eb5fa commit 8663d7e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

targets/laptop/flake-module.nix

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,23 @@ let
119119
}
120120
]))
121121

122+
# Generic target for Intel laptops with integrated graphics and low RAM
123+
(laptop-configuration "intel-laptop-low-mem" "debug" (withCommonModules [
124+
self.nixosModules.hardware-intel-laptop
125+
{
126+
ghaf = {
127+
reference.profiles.mvp-user-trial.enable = true;
128+
partitioning.disko.enable = true;
129+
virtualization.microvm.guivm.extraModules = [
130+
{
131+
microvm.mem = lib.mkForce 6144;
132+
}
133+
];
134+
virtualization.microvm.appvm.vms.flatpak.ramMb = lib.mkForce 5120;
135+
};
136+
}
137+
]))
138+
122139
(laptop-configuration "lenovo-t14-amd-gen5" "debug" (withCommonModules [
123140
self.nixosModules.hardware-lenovo-t14-amd-gen5
124141
{
@@ -342,6 +359,23 @@ let
342359
}
343360
]))
344361

362+
# Generic target for Intel laptops with integrated graphics and low RAM
363+
(laptop-configuration "intel-laptop-low-mem" "release" (withCommonModules [
364+
self.nixosModules.hardware-intel-laptop
365+
{
366+
ghaf = {
367+
reference.profiles.mvp-user-trial.enable = true;
368+
partitioning.disko.enable = true;
369+
virtualization.microvm.guivm.extraModules = [
370+
{
371+
microvm.mem = lib.mkForce 6144;
372+
}
373+
];
374+
virtualization.microvm.appvm.vms.flatpak.ramMb = lib.mkForce 5120;
375+
};
376+
}
377+
]))
378+
345379
(laptop-configuration "lenovo-t14-amd-gen5" "release" (withCommonModules [
346380
self.nixosModules.hardware-lenovo-t14-amd-gen5
347381
{

0 commit comments

Comments
 (0)