Files
nix-config/home/base/tui/editors/ipython/default.nix
T
ryan4yin | 二花 7ea9fd3197 feat(ipython): add data helpers without persisted history (#510)
Add a dedicated IPython module with startup helpers for JSON, YAML, TOML, and CSV plus a small set of common standard-library imports for interactive use.

Disable SQLite history and stop preserving ~/.ipython: interactive sessions can contain credentials and other sensitive data, so that profile state must not survive reboots implicitly.

Assisted-by: DeepSeek Harness 0.2.2-alpha.2 (deepseek-flash)
2026-11-02 14:45:20 +08:00

15 lines
519 B
Nix

{ ... }:
{
# Interactive IPython sessions routinely handle credentials and other
# sensitive values, so keep the SQLite history disabled rather than relying
# on the profile directory's lifetime. 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.enabled = False
'';
".ipython/profile_default/startup/10-data-helpers.py".source = ./data-helpers.py;
};
}