Skip to content

Commit

Permalink
move the loading of Bunch automations
Browse files Browse the repository at this point in the history
  • Loading branch information
franckrasolo committed Aug 1, 2024
1 parent 9451c6b commit bf97c4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions darwin/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@
duti ~/dev/dotfiles.nix/home/duti/
'';

system.activationScripts.postUserActivation.text = ''
# load Bunch automations – https://bunchapp.co/
open 'x-bunch://setPref?configDir=~/.xdg/config/bunches'
'';

programs.nix-index.enable = true;

# create /etc/<shell>rc that loads the nix-darwin environment
Expand Down
3 changes: 0 additions & 3 deletions darwin/macOS/postUserActivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
system.activationScripts.postUserActivation.text = ''
# close System Preferences to prevent any overriding of settings that are about to change
osascript -e 'tell application "System Preferences" to quit'
# load Bunch automations
open 'x-bunch://setPref?configDir=~/.xdg/config/bunches'
'';
}

0 comments on commit bf97c4d

Please sign in to comment.