feat: add nushell integration config
This commit is contained in:
parent
03a2702281
commit
583cdd7b00
4 changed files with 46 additions and 2 deletions
26
home-manager/stvnliu/shells/nushell/default.nix
Normal file
26
home-manager/stvnliu/shells/nushell/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myShells.nushell;
|
||||
in
|
||||
with lib; {
|
||||
options = {
|
||||
myShells.nushell = {enable = mkEnableOption "Enables nushell config";};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
nushell = {
|
||||
enable = true;
|
||||
configFile.source = ./init/config.nu;
|
||||
shellAliases = import ../aliases/default.nix {inherit pkgs;};
|
||||
};
|
||||
carapace = {
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue