-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy over fish variable exports to bash
- Loading branch information
1 parent
83d5843
commit 3952c94
Showing
2 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
{ config, pkgs, ... }: { | ||
{ config, pkgs, ... }: | ||
let | ||
isDarwin = pkgs.stdenv.isDarwin; | ||
in | ||
{ | ||
programs.bash = { | ||
enable = true; | ||
initExtra = '' | ||
export LC_ALL=en_US.UTF-8 | ||
export LANG=en_US.UTF-8 | ||
export PASSWORD_STORE_DIR=/Users/${config.home.username}/.password-store | ||
''; | ||
'' + | ||
(if isDarwin then | ||
'' | ||
export PATH="$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:$PATH" | ||
export PATH="$PATH:/etc/profiles/per-user/${config.home.username}/bin" | ||
export PATH="$PATH:/opt/homebrew/bin" | ||
export JAVA_HOME=/usr/libexec/java_home | ||
export PASSWORD_STORE_DIR="/Users/${config.home.username}/.password-store" | ||
'' | ||
else | ||
'' | ||
'' | ||
); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters