-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmacSetup.sh
More file actions
executable file
·27 lines (22 loc) · 904 Bytes
/
macSetup.sh
File metadata and controls
executable file
·27 lines (22 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# check if homebrew is installed and install if not
if [[ ! command -v brew > /dev/null ]]; then
echo "Installing Homebrew"
# run the installer from https://brew.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# handle the m1 case
if [[ -d /opt/homebrew ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
fi
if [[ ! command -v nix > /dev/null ]]; then
echo "Installing Nix"
# run the nix installer from https://nixos.org
sh <(curl -L https://nixos.org/nix/install) --daemon --darwin-use-unencrypted-nix-store-volume
fi
# install browsers
brew install firefox
# change time server to match SIS
sudo /usr/sbin/systemsetup -setnetworktimeserver "tick.usno.navy.mil"
sudo /usr/sbin/systemsetup -setusingnetworktime on
echo "Installation complete. Refer to README.md for running instructions."