summaryrefslogtreecommitdiff
path: root/hostnix/elmo
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-02-18 06:16:54 -0500
committerJoe Mou <dev@mou.fo>2024-02-18 06:28:31 -0500
commit5e5ee03e0d37df0d5e0cb32f3d568a7b29e9507f (patch)
tree9b0e68b23ea5f68b7baf4d19d5745bbe4d9f3a5c /hostnix/elmo
parent055d8106367a45c91988bd134a4a0d791dc2194b (diff)
use tmpfs for /tmp
Diffstat (limited to 'hostnix/elmo')
-rw-r--r--hostnix/elmo/system.nix7
1 files changed, 7 insertions, 0 deletions
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)";