From bf97c4d26dfe2a6d07422d0b848edfd1ed76464f Mon Sep 17 00:00:00 2001 From: Franck Rasolo Date: Thu, 1 Aug 2024 16:06:50 +0100 Subject: [PATCH] move the loading of Bunch automations --- darwin/configuration.nix | 5 +++++ darwin/macOS/postUserActivation.nix | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/darwin/configuration.nix b/darwin/configuration.nix index 5104ce1..e26a996 100644 --- a/darwin/configuration.nix +++ b/darwin/configuration.nix @@ -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/rc that loads the nix-darwin environment diff --git a/darwin/macOS/postUserActivation.nix b/darwin/macOS/postUserActivation.nix index bbd9ea5..842355e 100644 --- a/darwin/macOS/postUserActivation.nix +++ b/darwin/macOS/postUserActivation.nix @@ -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' ''; }