Enable Nushell and Carapace
Add nushell and some basic settings so that it works politely Add carapace configuration to both nushell and Xonsh
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
./bash.nix
|
./bash.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
./nushell.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./vim
|
./vim
|
||||||
./xonsh.nix
|
./xonsh.nix
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
programs = {
|
||||||
|
carapace = {
|
||||||
|
enable = true;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
nushell = {
|
||||||
|
enable = true;
|
||||||
|
environmentVariables = {
|
||||||
|
AWS_SHARED_CREDENTIALS_FILE = "/run/agenix/cache-credentials";
|
||||||
|
GOPATH = "${config.home.homeDirectory}/src/go";
|
||||||
|
GOBIN = "${config.home.homeDirectory}/src/bin";
|
||||||
|
LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN = "1";
|
||||||
|
SWORD_PATH = "${config.home.homeDirectory}/.sword/";
|
||||||
|
TIMEFORMAT = "%3Uu %3Ss %3lR %P%%";
|
||||||
|
VIRTUALENV_HOME = "${config.home.homeDirectory}/venv/";
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
use std/util "path add"
|
||||||
|
path add ${config.home.homeDirectory}/src/bin
|
||||||
|
path add /opt/homebrew/bin
|
||||||
|
path add /run/current-system/sw/bin
|
||||||
|
path add ${config.home.homeDirectory}/.nix-profile/bin
|
||||||
|
'';
|
||||||
|
settings = {
|
||||||
|
buffer_editor = lib.getExe config.programs.nixvim.package;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
starship = {
|
||||||
|
enable = true;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -10,12 +10,19 @@
|
|||||||
nvd
|
nvd
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.xonsh = {
|
programs = {
|
||||||
|
carapace = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
xonsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
# This is for pushing builds to my local S3 cache
|
# This is for pushing builds to my local S3 cache
|
||||||
AWS_SHARED_CREDENTIALS_FILE = "/run/agenix/cache-credentials";
|
AWS_SHARED_CREDENTIALS_FILE = "/run/agenix/cache-credentials";
|
||||||
|
CARAPACE_BRIDGES = "zsh,bash";
|
||||||
|
COMPLETIONS_CONFIRM = "True";
|
||||||
CLICOLOR = 1;
|
CLICOLOR = 1;
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
# vte_new_tab_cwd causes new Terminal tabs to open in the
|
# vte_new_tab_cwd causes new Terminal tabs to open in the
|
||||||
@@ -93,4 +100,5 @@
|
|||||||
" $NIX_LD = fp.read().strip()"
|
" $NIX_LD = fp.read().strip()"
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,3 +129,5 @@ import builtins
|
|||||||
builtins.true = True
|
builtins.true = True
|
||||||
builtins.false = False
|
builtins.false = False
|
||||||
builtins.null = None
|
builtins.null = None
|
||||||
|
|
||||||
|
exec($(carapace _carapace xonsh))
|
||||||
|
|||||||
Reference in New Issue
Block a user