Files
nix-config-ryan4yin/home/base/tui/editors/ipython/default.nix
T
Ryan Yin 9f29b48bf6 fix(ipython): keep in-session history in memory only
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-05 12:38:55 +08:00

16 lines
585 B
Nix

{ ... }:
{
# Interactive IPython sessions routinely handle credentials and other
# sensitive values, so keep the SQLite history in memory instead of on disk:
# arrow-key recall and %history still work within a session, but no history
# file is written. Home Manager recreates these files from the Nix store on
# every activation.
home.file = {
".ipython/profile_default/ipython_config.py".text = ''
c = get_config()
c.HistoryManager.hist_file = ":memory:"
'';
".ipython/profile_default/startup/10-data-helpers.py".source = ./data-helpers.py;
};
}