Vm : Add options & reduce nix min-free to 1G.
This commit is contained in:
parent
0e6c409be3
commit
6fb9cca935
|
@ -15,8 +15,8 @@
|
|||
# When running GC, keep build dependencies.
|
||||
keep-outputs = true;
|
||||
|
||||
# Run GC automatically when there's a 50 GB or less free space.
|
||||
min-free = 50 * 1000 * 1000 * 1000;
|
||||
# Run GC automatically when there's a less free space than specified.
|
||||
min-free = 1 * 1000 * 1000 * 1000;
|
||||
};
|
||||
|
||||
# NOTE: Currently I run GC completely, but this setting (put above near min-free)
|
||||
|
|
14
module/Vm.nix
Normal file
14
module/Vm.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ ... }: {
|
||||
virtualisation.vmVariant = {
|
||||
virtualisation = {
|
||||
memorySize = 4 * 1024;
|
||||
diskSize = 20 * 1024;
|
||||
cores = 4;
|
||||
restrictNetwork = false;
|
||||
resolution = {
|
||||
x = 1280;
|
||||
y = 720;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue