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)) + ''; + }; +}