mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
feat: import all base configs in darwin
feat: change darwin's default shell to nushell feat: update starship's config
This commit is contained in:
@@ -269,8 +269,8 @@ live_config_reload: true
|
||||
# Default:
|
||||
# - (Linux/BSD/macOS) `$SHELL` or the user's login shell, if `$SHELL` is unset
|
||||
# - (Windows) powershell
|
||||
# shell:
|
||||
# program: /bin/bash
|
||||
shell:
|
||||
program: /run/current-system/sw/bin/nu
|
||||
# args:
|
||||
# - --login
|
||||
|
||||
|
||||
@@ -2,16 +2,11 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
../base/nushell
|
||||
|
||||
../base/core.nix
|
||||
../base/git.nix
|
||||
../base/development.nix
|
||||
../base/media.nix
|
||||
../base/starship.nix
|
||||
|
||||
../base
|
||||
|
||||
./alacritty
|
||||
./core.nix
|
||||
./nushell.nix
|
||||
];
|
||||
|
||||
# Home Manager needs a bit of information about you and the
|
||||
|
||||
15
home/darwin/nushell.nix
Normal file
15
home/darwin/nushell.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ ... }: {
|
||||
# nushell's PATH do not include nix-darwin's PATH
|
||||
# this is a workaround to add nix-darwin's PATH to nushell's PATH
|
||||
programs.nushell.extraConfig = ''
|
||||
let-env PATH = ([
|
||||
|
||||
"~/.nix-profile/bin"
|
||||
"/etc/profiles/per-user/admin/bin"
|
||||
"/run/current-system/sw/bin"
|
||||
"/nix/var/nix/profiles/default/bin"
|
||||
|
||||
($env.PATH | split row (char esep))
|
||||
] | flatten)
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user