From eeb2fdc6768af721c934c7b5b80f89f7244cffbd Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 27 Feb 2025 09:38:53 -0500 Subject: [PATCH] global/xonsh: init This is temporary until Xonsh in home-manager is landed --- modules/global/xonsh.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/global/xonsh.nix diff --git a/modules/global/xonsh.nix b/modules/global/xonsh.nix new file mode 100644 index 0000000..bfbde08 --- /dev/null +++ b/modules/global/xonsh.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: +let + cfg = config.programs.xonsh; +in +{ + programs.xonsh = { + enable = true; + extraPackages = + p: with p; [ + parallel-ssh + cfg.package.xontribs.xonsh-direnv + ]; + config = '' + xontrib load direnv + + if $TERM != "dumb": + execx($(starship init xonsh)) + ''; + }; +}