From 26dd014860c0edd89a859d2d8c6dff10275acbad Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Mon, 16 Dec 2024 23:28:56 -0600 Subject: system changes --- .../.flake/home/scripts/remove-quarantine.nix.org | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 macos.local/.flake/home/scripts/remove-quarantine.nix.org (limited to 'macos.local/.flake/home/scripts/remove-quarantine.nix.org') diff --git a/macos.local/.flake/home/scripts/remove-quarantine.nix.org b/macos.local/.flake/home/scripts/remove-quarantine.nix.org new file mode 100644 index 0000000..fa8d882 --- /dev/null +++ b/macos.local/.flake/home/scripts/remove-quarantine.nix.org @@ -0,0 +1,24 @@ +#+title: Remove Quarantine + +macOS likes putting applications in quarantine without me wanting. This script removes an application from the quarantine. +#+begin_src nix + { config, pkgs, ... }: + + { + home.file."./.local/bin/remove-quarantine" = { + executable = true; + text = '' +#+end_src + +Remove the app from quarantine by recursively deleting the quarantine attribute on the application. +#+begin_src sh + #!/bin/sh + /usr/bin/xattr -dr com.apple.quarantine "$@" +#+end_src + +Close the block. +#+begin_src nix + ''; + }; + } +#+end_src -- cgit v1.2.3