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:
parent
dc575ed17d
commit
4757a160e2
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue