mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-28 17:22:33 +01:00
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)
15 lines
519 B
Nix
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;
|
|
};
|
|
}
|