Mount /tmp from RAM

This commit is contained in:
2026-06-29 10:55:31 +00:00
parent ce9475e001
commit 50898e30aa
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
... ...
}: }:
{ {
# Create /etc/zshrc that loads the nix-darwin environment. # Create /etc/zshrc that loads the nix environment.
programs.zsh.enable = true; programs.zsh.enable = true;
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
+4
View File
@@ -1,6 +1,7 @@
{ {
modulesPath, modulesPath,
pkgs, pkgs,
lib,
... ...
}: }:
{ {
@@ -73,4 +74,7 @@
capabilities = "cap_net_raw+p"; capabilities = "cap_net_raw+p";
source = "${pkgs.iputils.out}/bin/ping"; source = "${pkgs.iputils.out}/bin/ping";
}; };
# Our VMs usually have sufficient RAM, prefer to extend SSD lifetime.
boot.tmp.useTmpfs = lib.mkDefault true;
} }