mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
16 lines
585 B
Nix
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;
|
|
};
|
|
}
|