about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-11-22 14:59:31 +0100
committerProfpatsch <mail@profpatsch.de>2017-11-22 15:11:07 +0100
commit546c26eca1bb7dff325ff14af30d334170982fd5 (patch)
tree5f6628ff729b950f6fd279251b16166d57fe5684 /machines
parent6201f67e9ec30ec7d39270c0da27cd282a5e8cb4 (diff)
machines/profpatsch: always clean /tmp on reboot
Diffstat (limited to 'machines')
-rw-r--r--machines/profpatsch/base-server.nix2
-rw-r--r--machines/profpatsch/base.nix3
2 files changed, 3 insertions, 2 deletions
diff --git a/machines/profpatsch/base-server.nix b/machines/profpatsch/base-server.nix
index 9d0a6819..921e5d8d 100644
--- a/machines/profpatsch/base-server.nix
+++ b/machines/profpatsch/base-server.nix
@@ -18,8 +18,6 @@ in
 
   config = {
 
-    boot.cleanTmpDir = true;
-
     programs.mosh.enable = true;
 
     services.openssh = {
diff --git a/machines/profpatsch/base.nix b/machines/profpatsch/base.nix
index 5c4082f0..c775788a 100644
--- a/machines/profpatsch/base.nix
+++ b/machines/profpatsch/base.nix
@@ -12,6 +12,9 @@ in
     # correctness before speed
     nix.useSandbox = true;
 
+    # /tmp should never be depended on
+    boot.cleanTmpDir = true;
+
     programs.bash = {
       loginShellInit = ''
         alias c='vim /root/vuizvui/machines/profpatsch'