mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-03 19:48:24 +08:00
add nushell
This commit is contained in:
parent
6f4633f1a1
commit
11eb51d386
2 changed files with 9 additions and 1 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue