Skip to content

Commit

Permalink
Fixed slow rebuilds by having /tmp be a tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
NotZaney committed Feb 19, 2024
1 parent ff6db58 commit bad2afc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/system/boot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernel.sysctl = { "vm.max_map_count" = 2147483642; };
boot.tmp.useTmpfs = true;
boot.tmp.tmpfsSize = "25%";

# This is for OBS Virtual Cam Support - v4l2loopback setup
boot.kernelModules = [ "v4l2loopback" ];
Expand Down

0 comments on commit bad2afc

Please sign in to comment.