diff --git a/module/Nix.nix b/module/Nix.nix index aac21bb..450c0e5 100644 --- a/module/Nix.nix +++ b/module/Nix.nix @@ -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) diff --git a/module/Vm.nix b/module/Vm.nix new file mode 100644 index 0000000..95675f5 --- /dev/null +++ b/module/Vm.nix @@ -0,0 +1,14 @@ +{ ... }: { + virtualisation.vmVariant = { + virtualisation = { + memorySize = 4 * 1024; + diskSize = 20 * 1024; + cores = 4; + restrictNetwork = false; + resolution = { + x = 1280; + y = 720; + }; + }; + }; +}