Files
nix-config/modules/misc/tmpfs.nix
2024-04-17 16:33:12 +02:00

16 lines
235 B
Nix

{config, lib, ...}:
with lib;
let
cfg = config.custom.tmpfs;
in
{
options.custom.tmpfs = {
enable = mkEnableOption "Enables tmpfs";
};
config = mkIf cfg.enable {
boot.tmp.useTmpfs = true;
};
}