Use tmpfs option rather than setting it manually
This commit is contained in:
parent
ff730b8217
commit
55c91df1f1
|
@ -1,6 +1,8 @@
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
let systemInformation = import ../system/system-information.nix; in
|
let systemInformation = import ../system/system-information.nix; in
|
||||||
{
|
{
|
||||||
|
boot.tmpOnTmpfs = true;
|
||||||
|
boot.tmpOnTmpfsSize = "75%";
|
||||||
boot.initrd.luks.devices = {
|
boot.initrd.luks.devices = {
|
||||||
cryptoroot = {
|
cryptoroot = {
|
||||||
device = systemInformation.rootPartition;
|
device = systemInformation.rootPartition;
|
||||||
|
@ -33,14 +35,6 @@ let systemInformation = import ../system/system-information.nix; in
|
||||||
# Uncomment this once the root fs is actually btrfs
|
# Uncomment this once the root fs is actually btrfs
|
||||||
# fsType = "btrfs";
|
# fsType = "btrfs";
|
||||||
};
|
};
|
||||||
"/tmp" = {
|
|
||||||
device = "none";
|
|
||||||
fsType = "tmpfs";
|
|
||||||
options = [
|
|
||||||
"size=75%"
|
|
||||||
"mode=777"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/boot/efi" = {
|
"/boot/efi" = {
|
||||||
device = systemInformation.efiPartition;
|
device = systemInformation.efiPartition;
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
|
Loading…
Reference in New Issue