1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

hydra: disable spotlight

This commit is contained in:
Daiderd Jordan 2018-01-23 19:45:25 +01:00
parent dc575ed17d
commit 4757a160e2
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -48,6 +48,11 @@ in
users.users.hydra = { uid = 530; gid = 530; description = "Hydra"; home = "/Users/hydra"; shell = "/bin/bash"; };
system.activationScripts.postActivation.text = ''
printf "disabling spotlight indexing... "
mdutil -i off -d / &> /dev/null
mdutil -E / &> /dev/null
echo "ok"
printf "configuring ssh keys for hydra... "
mkdir -p ~hydra/.ssh
cp -f /etc/per-user/hydra/ssh/authorized_keys ~hydra/.ssh/authorized_keys