about summary refs log tree commit diff
path: root/ops/nixos
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-22T17·06+0100
committerVincent Ambo <tazjin@google.com>2020-05-22T17·06+0100
commit0623fec60a2a390ac561a9d9123cf7ddc21d3a02 (patch)
treef97541d9564b50d132103bc18879304e9e918caa /ops/nixos
parent5229c9b232de5bfa959ad6ebbb4c8192ac513352 (diff)
chore(ops/nixos/nugget): Increase user RuntimeDirectory size to 4GB r/809
clangd needs more space to run successfully on the Nix repository.
Diffstat (limited to 'ops/nixos')
-rw-r--r--ops/nixos/nugget/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/ops/nixos/nugget/default.nix b/ops/nixos/nugget/default.nix
index 185123e77cc6..f9093f728d1a 100644
--- a/ops/nixos/nugget/default.nix
+++ b/ops/nixos/nugget/default.nix
@@ -257,6 +257,11 @@ in depot.lib.fix(self: {
     # nugget has an SSD
     services.fstrim.enable = true;
 
+    # clangd needs more than ~2GB in the runtime directory to start up
+    services.logind.extraConfig = ''
+      RuntimeDirectorySize=4G
+    '';
+
     # ... and other nonsense.
     system.stateVersion = "19.09";
 })