{
  config,
  lib,
  ...
}: {
  imports = [../../../../home/sessionVariables];

  options.dotfiles.inputs.home-manager.systemd.user.tmpfiles.rules.enable =
    lib.dotfiles.mkEnableOption;

  config =
    lib.mkIf
    config.dotfiles.inputs.home-manager.systemd.user.tmpfiles.rules.enable
    {
      dotfiles.inputs.home-manager.home.sessionVariables = {
        TMPDIR.enable = true;
        enable = true;
      };

      systemd.user.tmpfiles.rules = [
        "d ${config.home.sessionVariables.TMPDIR} - - - bmA:1w"
      ];
    };
}
