16 lines
250 B
Nix
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%";
|
|
};
|
|
};
|
|
}
|