1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-05-30 08:37:01 +02:00

fix nushell not being default shell

This commit is contained in:
TheGeneralist 2026-04-06 14:59:48 +02:00
parent 8c109011cc
commit 181b787ce5
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
5 changed files with 174 additions and 93 deletions

View file

@ -1,12 +1,31 @@
{ pkgs, ... }: {
{ lib, pkgs, ... }:
let
inherit (lib) getExe;
in
{
environment.systemPackages = [
pkgs.carapace
pkgs.fish
pkgs.zsh
pkgs.bash
pkgs.inshellisense
];
environment.variables.CARAPACE_BRIDGES = "inshellisense,carapace,zsh,fish,bash";
home-manager.sharedModules = [{
programs.carapace.enable = true;
programs.carapace = {
enable = true;
enableNushellIntegration = false;
enableZshIntegration = false;
};
programs.nushell.extraConfig = /* nu */ ''
source ${
pkgs.runCommand "carapace.nu" { } ''
${getExe pkgs.carapace} _carapace nushell > $out
''
}
'';
}];
}