From 5e5ee03e0d37df0d5e0cb32f3d568a7b29e9507f Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Sun, 18 Feb 2024 06:16:54 -0500 Subject: use tmpfs for /tmp --- hostnix/elmo/system.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hostnix') diff --git a/hostnix/elmo/system.nix b/hostnix/elmo/system.nix index 311338f..871999d 100644 --- a/hostnix/elmo/system.nix +++ b/hostnix/elmo/system.nix @@ -4,6 +4,8 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.tmp.useTmpfs = true; + networking.hostName = "elmo"; networking.domain = "mou.fo"; @@ -11,6 +13,11 @@ time.timeZone = "America/New_York"; + # https://github.com/NixOS/nixpkgs/issues/54707#issuecomment-1132907191 + systemd.services.nix-daemon = { + environment.TMPDIR = "/var/tmp"; + }; + # https://nixos.wiki/wiki/Hardware/Apple#Auto_Restart systemd.services.enable-autorestart = { description = "Boot after power failure (server mode)"; -- cgit v1.3.1