Skip to content

Commit

Permalink
work around for Homebrew clearing the password cache on every invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
franckrasolo committed Aug 1, 2024
1 parent 0e92087 commit 6c658d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions darwin/bin/sudo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

if [ "$*" != "--reset-timestamp" ]; then
/usr/bin/sudo "$@"
fi
2 changes: 2 additions & 0 deletions darwin/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
};

system.activationScripts.preUserActivation.text = with pkgs.unstable; ''
export PATH=~/dev/dotfiles.nix/darwin/bin:$PATH
launchctl setenv XDG_CACHE_HOME ~/.xdg/cache
launchctl setenv XDG_CONFIG_HOME ~/.xdg/config
launchctl setenv XDG_DATA_HOME ~/.xdg/local/share
Expand Down

0 comments on commit 6c658d2

Please sign in to comment.