feat(tmp): declare 'tmp' module

This commit is contained in:
hektor committed 2026-10-24 13:09:19 +02:00
1 parent fc373a60ef
commit f3876cdf87
4 files changed
+32 -29

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{ lib, config, ... }:
{
options.tmp.enable = lib.mkOption {
default = config.host.highRam;
type = lib.types.bool;
};
config = lib.mkIf config.tmp.enable {
boot.tmp = {
useTmpfs = true;
tmpfsSize = "25%";
};
};
}