Skip to content

Commit b5c2c8e

Browse files
committed
macs: disable spotlight indexing
This leaves `/usr/sbin/distnoted agent` running all the time, which we do not actually want or need.
1 parent 1b3e9d6 commit b5c2c8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

macs/common.nix

+5
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ in
7777
cp -f /etc/per-user/root/ssh/authorized_keys ~root/.ssh/authorized_keys
7878
chown root:wheel ~root ~root/.ssh ~root/.ssh/authorized_keys
7979
echo "ok"
80+
81+
printf "disabling spotlight indexing... "
82+
mdutil -i off -d / &> /dev/null
83+
mdutil -E / &> /dev/null
84+
echo "ok"
8085
'';
8186

8287
services.prometheus.exporters.node.enable = true;

0 commit comments

Comments
 (0)