Home

dotnix @a6b22d550cea037f95a5863718268de2f9a42bc6 - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / apps / nushell.nix
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{pkgs, ...}: {
  programs.nushell = {
    enable = true;
    configFile.source = ./nushell/config.nu;
    envFile.source = ./nushell/env.nu;
    shellAliases = {
      cat = "bat";
      find = "fd";
      df = "duf";
      du = "dust -b -d 1";
      ll = "ls -al";
      nix-shell = "nix-shell --run nu";
    };
    extraConfig = ''
      use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/bitwarden-cli/bitwarden-cli-completions.nu *
      use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/btm/btm-completions.nu *
      use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/git/git-completions.nu *
      use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/glow/glow-completions.nu *
      use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/just/just.nu *
      use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/nix/nix-completions.nu *
    '';
  };
  xdg.configFile = {
    "nushell/jolheiser.nu".source = ./nushell/jolheiser.nu;
    "nushell/zoxide.nu".source = ./nushell/zoxide.nu;
    "nushell/ohmyposh.nu".source = ./nushell/ohmyposh.nu;
  };
}