From 13de7d5a883576a2b8ce0bf8e8998b0a18a041a9 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Fri, 11 Apr 2025 14:37:27 -0400 Subject: [PATCH] feat: Add a helper to restart durnitisp --- nix/base-system/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/base-system/zshrc b/nix/base-system/zshrc index 2400746..738ab2f 100644 --- a/nix/base-system/zshrc +++ b/nix/base-system/zshrc @@ -42,6 +42,12 @@ function disk_usage() { /run/current-system/sw/bin/du --max-depth=1 -h "${path}" 2>/dev/null } +# TODO(zaphar): Figure out why this thing doesn't come up or dies +function restart_durnitisp() { + sudo launchctl bootout system/org.nixos.durnitisp + sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.durnitisp.plist org.nixos.durnitisp +} + eval "$(direnv hook zsh)" export ANTHROPIC_API_KEY="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"