16 lines
215 B
Nix
16 lines
215 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;
|
|
};
|
|
}
|
|
|