From 55c91df1f120eaab1c4138de465620d1f1796abf Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Fri, 17 Mar 2023 10:33:20 -0400 Subject: [PATCH] Use tmpfs option rather than setting it manually --- configs/filesystems.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/configs/filesystems.nix b/configs/filesystems.nix index 6edace3..96da9f2 100644 --- a/configs/filesystems.nix +++ b/configs/filesystems.nix @@ -1,6 +1,8 @@ { config, lib, pkgs, modulesPath, ... }: let systemInformation = import ../system/system-information.nix; in { + boot.tmpOnTmpfs = true; + boot.tmpOnTmpfsSize = "75%"; boot.initrd.luks.devices = { cryptoroot = { device = systemInformation.rootPartition; @@ -33,14 +35,6 @@ let systemInformation = import ../system/system-information.nix; in # Uncomment this once the root fs is actually btrfs # fsType = "btrfs"; }; - "/tmp" = { - device = "none"; - fsType = "tmpfs"; - options = [ - "size=75%" - "mode=777" - ]; - }; "/boot/efi" = { device = systemInformation.efiPartition; fsType = "vfat";