Files
nix/modules/tmp/default.nix
T
hektor 335c29ddfd
check / lint (push) Successful in 18s
feat(tmp): add 'tmp' module
2026-10-24 12:17:58 +02:00

16 lines
250 B
Nix

{ 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%";
};
};
}