From 956f0296410b3e93ef29555c353f3ed48d0dd622 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 8 Oct 2023 10:47:48 +0200 Subject: fix(hm/conf/python): Move python history file to a persistent location --- hm/soispha/conf/python/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'hm/soispha/conf/python/default.nix') diff --git a/hm/soispha/conf/python/default.nix b/hm/soispha/conf/python/default.nix index eeaccdcf..93a530c7 100644 --- a/hm/soispha/conf/python/default.nix +++ b/hm/soispha/conf/python/default.nix @@ -1,7 +1,6 @@ -{ - config, - pkgs, - ... -}: { +{config, ...}: { xdg.configFile."python/pythonrc".source = ./pythonrc; + environment.sessionVariables = { + "PYTHONSTARTUP" = "${config.xdg.configHome}/python/pythonrc"; + }; } -- cgit 1.4.1