global/xonsh: init
This is temporary until Xonsh in home-manager is landed
This commit is contained in:
parent
0d4b9133cd
commit
eeb2fdc676
1 changed files with 20 additions and 0 deletions
20
modules/global/xonsh.nix
Normal file
20
modules/global/xonsh.nix
Normal file
|
@ -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))
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue