From 05a4fa074b310e660178b53eb915f1f2ae5608f3 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 8 Dec 2021 16:45:21 +0100 Subject: [PATCH] use tmpOnTmpfsSize --- hosts/architect/default.nix | 11 +++++++---- hosts/architect/hardware.nix | 6 ------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/hosts/architect/default.nix b/hosts/architect/default.nix index e9ff19e..8161095 100644 --- a/hosts/architect/default.nix +++ b/hosts/architect/default.nix @@ -23,7 +23,7 @@ in { ./matrix.nix ./fail2ban.nix ./dns.nix -# ./minecraft.nix + # ./minecraft.nix ./prowlarr.nix ./plex.nix ./transmission.nix @@ -36,11 +36,13 @@ in { time.timeZone = "Europe/Rome"; system.stateVersion = "21.11"; # Did you read the comment? users.users.giulio.openssh.authorizedKeys.keys = pubkeys; - + services.fwupd.enable = true; boot = { - kernelParams = - [ "ip=${architect-lan}::10.0.0.1:255.255.255.0::${wan-if}:off" "nvme_core.default_ps_max_latency_us=5500" ]; + kernelParams = [ + "ip=${architect-lan}::10.0.0.1:255.255.255.0::${wan-if}:off" + "nvme_core.default_ps_max_latency_us=5500" + ]; kernel.sysctl."net.ipv4.ip_forward" = 1; initrd = { availableKernelModules = [ "igc" "r8169" ]; @@ -70,6 +72,7 @@ in { supportedFilesystems = [ "zfs" ]; zfs.requestEncryptionCredentials = true; + tmpOnTmpfsSize = "75%"; }; networking = { diff --git a/hosts/architect/hardware.nix b/hosts/architect/hardware.nix index 613b6d2..5055d70 100644 --- a/hosts/architect/hardware.nix +++ b/hosts/architect/hardware.nix @@ -42,12 +42,6 @@ fsType = "vfat"; }; - fileSystems."/tmp" = { - fsType = "tmpfs"; - device = "tmpfs"; - options = [ "mode=1777" "strictatime" "rw" "nosuid" "nodev" "size=29G" ]; - }; - swapDevices = [{ device = "/dev/sdc1"; size = 100000;