From dabd2566126f25ae120fed9f131a3e2efbffa5f5 Mon Sep 17 00:00:00 2001 From: John Axel Eriksson Date: Tue, 26 Nov 2024 08:43:54 +0100 Subject: [PATCH] feat: set PATH for GUI apps on mac (#1029) --- darwin/aarch64-darwin/VW2WRF4694.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/darwin/aarch64-darwin/VW2WRF4694.nix b/darwin/aarch64-darwin/VW2WRF4694.nix index e8c60726..89e3bdc0 100644 --- a/darwin/aarch64-darwin/VW2WRF4694.nix +++ b/darwin/aarch64-darwin/VW2WRF4694.nix @@ -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}";