anchor.diff:    userLaunchdActivation = target: ''
       if ! diff ${cfg.build.launchd}/user/Library/LaunchAgents/${target} ~/Library/LaunchAgents/${target} &> /dev/null; then
         if test -f ~/Library/LaunchAgents/${target}; then
  +        echo "reloading user service $(basename ${target} .plist)" >&2
           launchctl unload -w ~/Library/LaunchAgents/${target} || true
  +      else
  +        echo "creating user service $(basename ${target} .plist)" >&2
         fi
         cp -f '${cfg.build.launchd}/user/Library/LaunchAgents/${target}' ~/Library/LaunchAgents/${target}
         launchctl load -w ~/Library/LaunchAgents/${target}
  
positive.code:   launchdActivation = basedir: target: ''
      if ! diff '${cfg.build.launchd}/Library/${basedir}/${target}' '/Library/${basedir}/${target}' &> /dev/null; then
        if test -f '/Library/${basedir}/${target}'; then
          launchctl unload -w '/Library/${basedir}/${target}' || true
        fi
        cp -f '${cfg.build.launchd}/Library/${basedir}/${target}' '/Library/${basedir}/${target}'
        launchctl load -w '/Library/${basedir}/${target}'
  
negative.code: 
        for f in $(ls /run/current-system/user/Library/LaunchAgents); do
          if test ! -e "${cfg.build.launchd}/user/Library/LaunchAgents/$f"; then
            echo "removing user service $(basename $f .plist)" >&2
            launchctl unload -w ~/Library/LaunchAgents/$f || true
            if test -e ~/Library/LaunchAgents/$f; then rm -f ~/Library/LaunchAgents/$f; fi
          fi
  