From 6317c4e28b7c4bd078010252886866976d76eb85 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 4 May 2023 12:03:55 -0600 Subject: [PATCH] all: use boot.tmp.cleanOnBoot on unstable --- default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 186b3e2..81cf568 100644 --- a/default.nix +++ b/default.nix @@ -14,6 +14,11 @@ let command="/run/current-system/sw/bin/xin-status",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE9PIhQ+yWfBM2tEG+W8W8HXJXqISXif8BcPZHakKvLM xin-status ''; gosignify = pkgs.callPackage ./pkgs/gosignify.nix { inherit isUnstable; }; + inFluxBootOptions = if isUnstable then { + tmp = { cleanOnBoot = true; }; + } else { + cleanTmpDir = true; + }; inFluxSSHOptions = if isUnstable then { settings = { PermitRootLogin = "prohibit-password"; @@ -142,13 +147,12 @@ in { ''; boot = { - cleanTmpDir = true; kernelPackages = lib.mkDefault pkgs.linuxPackages_hardened; kernel.sysctl = { "net.ipv4.tcp_keepalive_time" = 60; "net.ipv6.tcp_keepalive_time" = 60; }; - }; + } // inFluxBootOptions; nix = { settings = if config.networking.hostName != "pwntie" then {