1
0
Fork 0

unix-setup.sh: darwin_setup should be called before home_manager_setup

This commit is contained in:
Pratham Patel 2024-02-19 11:17:27 +05:30
parent 385984cf40
commit 6458064b64
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 8 additions and 7 deletions

View File

@ -155,19 +155,21 @@ function home_manager_setup() {
function run_rustup() {
"${HOME}"/.local/scripts/other-common-scripts/rust-manage.sh "${HOME}"/.nix-profile/bin/rustup
}
function darwin_setup() {
if [[ "$(uname -s)" == 'Darwin' ]]; then
# TODO: xcode thingy
# TODO: homebrew setup
echo "WIP"
fi
}
function common_setup() {
install_dotfiles
nix_setup
darwin_setup
home_manager_setup
run_rustup
}
function darwin_setup() {
# TODO: xcode thingy
# TODO: homebrew setup
echo "WIP"
}
if [[ "$(uname -s)" == 'Linux' ]]; then
if grep "ID=debian\|ID=ubuntu" /etc/os-release > /dev/null; then
@ -202,7 +204,6 @@ if [[ "$(uname -s)" == 'Linux' ]]; then
elif [[ "$(uname -s)" == 'Darwin' ]]; then
function unix_setup() {
common_setup
darwin_setup
}
else
echo 'Unsupported OS.'