From 4757a160e2289c2d1e7575106ea501887a123206 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 23 Jan 2018 19:45:25 +0100 Subject: [PATCH] hydra: disable spotlight --- modules/examples/hydra.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/examples/hydra.nix b/modules/examples/hydra.nix index 34250cdd..97dfddf8 100644 --- a/modules/examples/hydra.nix +++ b/modules/examples/hydra.nix @@ -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