Use tmpfs option rather than setting it manually

This commit is contained in:
Emi Simpson 2023-03-17 10:33:20 -04:00
parent ff730b8217
commit 55c91df1f1
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 2 additions and 8 deletions

View File

@ -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";