macs: disable spotlight indexing
This leaves `/usr/sbin/distnoted agent` running all the time, which we do not actually want or need.
Martin Weinelt committed
Feb 7, 2025 at 00:54 UTC
b5c2c8e7a35849f467c0ca6c55a5896d475217e3
1 file changed
+5
macs/common.nix
+5
@@ -77,6 +77,11 @@ in
77
cp -f /etc/per-user/root/ssh/authorized_keys ~root/.ssh/authorized_keys
78
chown root:wheel ~root ~root/.ssh ~root/.ssh/authorized_keys
79
echo "ok"
80
+
81
+ printf "disabling spotlight indexing... "
82
+ mdutil -i off -d / &> /dev/null
83
+ mdutil -E / &> /dev/null
84
+ echo "ok"
85
'';
86
87
services.prometheus.exporters.node.enable = true;