diff --git a/home/default.nix b/home/default.nix index 82876da..4512060 100644 --- a/home/default.nix +++ b/home/default.nix @@ -11,6 +11,12 @@ ./terminal.nix ./direnv.nix ]; + programs.nushell = { + enable = true; + envFile.text = '' + let-env PATH = ($env.PATH | split row (char esep) | prepend $"/etc/profiles/per-user/($env.USER)/bin" | prepend '/run/current-system/sw/bin/') + ''; + }; }; common-linux = { imports = [ diff --git a/home/shellcommon.nix b/home/shellcommon.nix index 2ad4a13..a733d8b 100644 --- a/home/shellcommon.nix +++ b/home/shellcommon.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let # These aliases should work on all shells. shellAliasesSimple = { @@ -20,4 +20,6 @@ in { programs.bash = { inherit shellAliases; }; programs.zsh = { inherit shellAliases; }; + programs.nushell.extraConfig = + lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "alias ${k} = ${v}") shellAliasesSimple); }