summaryrefslogtreecommitdiff
path: root/common.nix
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-09-25 18:39:49 +0200
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-09-25 18:39:49 +0200
commit0a389da154f6e4901b60c86f39e883cb9cf05a11 (patch)
tree65642476697942c629ebf6456e744bb2389c307f /common.nix
parentff442b6e9e6011874b52d3a86422a6e72a0a62f9 (diff)
Whatever
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,