https://git.jolheiser.com/dotnix.git
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 29 30 31 32 33 34 35 36 37 38
{ pkgs, config, ... }: { 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"; cachix-build = "cachix watch-exec jolheiser -- nix build --rebuild --max-jobs 4"; }; extraConfig = with pkgs; '' use ${nu_scripts}/share/nu_scripts/custom-completions/bitwarden-cli/bitwarden-cli-completions.nu * use ${nu_scripts}/share/nu_scripts/custom-completions/btm/btm-completions.nu * use ${nu_scripts}/share/nu_scripts/custom-completions/git/git-completions.nu * use ${nu_scripts}/share/nu_scripts/custom-completions/glow/glow-completions.nu * use ${nu_scripts}/share/nu_scripts/custom-completions/just/just-completions.nu * use ${nu_scripts}/share/nu_scripts/custom-completions/nix/nix-completions.nu * use ${jolheiser.tmpl}/share/tmpl-completions.nu * ''; extraEnv = '' $env.GOPATH = "${config.xdg.dataHome}/go" $env.PATH = ($env.PATH | split row (char esep) | prepend '${config.xdg.dataHome}/go/bin') $env.SPECTRE_USERNAME = "jolheiser" $env.SPECTRE_SECRET-FILE = "${config.age.secrets.spectre-pw.path}" ''; }; xdg.configFile = { "nushell/jolheiser.nu".source = ./nushell/jolheiser.nu; "nushell/ssh.nu".source = ./nushell/ssh.nu; "nushell/ohmyposh.nu".source = ./nushell/ohmyposh.nu; }; }