summaryrefslogtreecommitdiff
path: root/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.nix b/common.nix
index 63e3ab0..1dab9f0 100644
--- a/common.nix
+++ b/common.nix
@@ -16,6 +16,12 @@
enableUserSlices = true;
enableSystemSlice = true;
enableRootSlice = true;
+ extraConfig = {
+ SwapUsedLimit="50%";
+ DefaultMemoryPressureLimit="50%";
+ DefaultMemoryPressureDurationSec=20;
+
+ };
};
nix.gc = {
@@ -53,6 +59,8 @@
gnumake
clang
rustup
+
+ # D
];
# This option defines the first version of NixOS you have installed on this particular machine,