Vm : Add options & reduce nix min-free to 1G.

This commit is contained in:
Dmitry Voronin 2024-09-08 05:26:04 +03:00
parent 0e6c409be3
commit 6fb9cca935
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 16 additions and 2 deletions

View file

@ -15,8 +15,8 @@
# When running GC, keep build dependencies. # When running GC, keep build dependencies.
keep-outputs = true; keep-outputs = true;
# Run GC automatically when there's a 50 GB or less free space. # Run GC automatically when there's a less free space than specified.
min-free = 50 * 1000 * 1000 * 1000; min-free = 1 * 1000 * 1000 * 1000;
}; };
# NOTE: Currently I run GC completely, but this setting (put above near min-free) # NOTE: Currently I run GC completely, but this setting (put above near min-free)

14
module/Vm.nix Normal file
View file

@ -0,0 +1,14 @@
{ ... }: {
virtualisation.vmVariant = {
virtualisation = {
memorySize = 4 * 1024;
diskSize = 20 * 1024;
cores = 4;
restrictNetwork = false;
resolution = {
x = 1280;
y = 720;
};
};
};
}