From 957dc920a477d4b8909e0b2b52b64279b5c262f1 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 2 Jan 2025 21:17:42 +0800 Subject: [PATCH] home: add python3, drop gnome-calculator --- home/applications/python/default.nix | 11 +++++++++++ home/default.nix | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 home/applications/python/default.nix diff --git a/home/applications/python/default.nix b/home/applications/python/default.nix new file mode 100644 index 0000000..ed30197 --- /dev/null +++ b/home/applications/python/default.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: +{ + home.packages = [ pkgs.python3 ]; + + # stolen from nickcao's flake + home.sessionVariables.PYTHONSTARTUP = + (pkgs.writeText "start.py" '' + import readline + readline.write_history_file = lambda *args: None + '').outPath; +} diff --git a/home/default.nix b/home/default.nix index 3ab8102..4c0c064 100644 --- a/home/default.nix +++ b/home/default.nix @@ -36,7 +36,6 @@ fastfetch fd file-roller - gnome-calculator hyperfine libnotify loupe