Skip to content

Commit

Permalink
feat: set PATH for GUI apps on mac (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnae authored Nov 26, 2024
1 parent 7138b96 commit dabd256
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions darwin/aarch64-darwin/VW2WRF4694.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@
export SHELL=nu
'';

## this sets the PATH for GUI apps
## needs a restart
launchd.user.agents = {
user-paths = {
command = "/bin/launchctl config user path '/opt/homebrew/bin:/Users/johnaxele/.nix-profile/bin:/etc/profiles/per-user/johnaxele/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin'";
serviceConfig.RunAtLoad = true;
};
};

home-manager.users.${adminUser.name} = {
home.stateVersion = "21.05";
home.username = "${adminUser.name}";
Expand Down

0 comments on commit dabd256

Please sign in to comment.