Skip to content

Commit

Permalink
Add right password-store directory for darwin shells (#11)
Browse files Browse the repository at this point in the history
* Add right password-store directory for darwin shells

* Apply nixpkgs-fmt
  • Loading branch information
rounakdatta authored Jan 19, 2024
1 parent 7052ed9 commit 83d5843
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions configs/bash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
initExtra = ''
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export PASSWORD_STORE_DIR=/Users/${config.home.username}/.password-store
'';
};
}
11 changes: 6 additions & 5 deletions configs/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ in
'' +
(if isDarwin then
''
# this is needed, otherwise darwin-rebuild wouldn't be in PATH
fish_add_path --prepend --global "$HOME/.nix-profile/bin" /nix/var/nix/profiles/default/bin /run/current-system/sw/bin
set PATH $PATH /etc/profiles/per-user/${config.home.username}/bin
set PATH $PATH /opt/homebrew/bin
set JAVA_HOME /usr/libexec/java_home
# this is needed, otherwise darwin-rebuild wouldn't be in PATH
fish_add_path --prepend --global "$HOME/.nix-profile/bin" /nix/var/nix/profiles/default/bin /run/current-system/sw/bin
set PATH $PATH /etc/profiles/per-user/${config.home.username}/bin
set PATH $PATH /opt/homebrew/bin
set JAVA_HOME /usr/libexec/java_home
set PASSWORD_STORE_DIR /Users/${config.home.username}/.password-store
''
else
''
Expand Down

0 comments on commit 83d5843

Please sign in to comment.