fix: enable 'boot.tmp.useTmpfs' based on host 'highRam' flag

This commit is contained in:
2026-04-26 15:00:54 +02:00
parent b66b0c4003
commit 83958847f4
4 changed files with 16 additions and 2 deletions

View File

@@ -1,4 +1,11 @@
{ config, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
tmp.useTmpfs = config.host.highRam;
};
}

View File

@@ -19,5 +19,10 @@
type = lib.types.str;
default = "en_US.UTF-8";
};
highRam = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
}