🧹 cleaning up some old docs, etc
This commit is contained in:
parent
0ec226e193
commit
16b8bd53b1
@ -1,2 +0,0 @@
|
|||||||
.ssh
|
|
||||||
.config
|
|
20
README.md
20
README.md
@ -1,15 +1,13 @@
|
|||||||
# dotfiles
|
# dotfiles
|
||||||
|
|
||||||
My config files and things. May contain cruft.
|
This is how I manage my workstations. Currently using [nix](https://nixos.org) (and nix-darwin).
|
||||||
|
|
||||||
## Installation
|
## Install
|
||||||
|
|
||||||
Using [homesick](https://rubygems.org/gems/homesick):
|
1. Install nix (daemon mode): `sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon`
|
||||||
|
1. Install nix-darwin:
|
||||||
gem install homesick
|
* `nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer`
|
||||||
homesick clone git@github.com:walkah/dotfiles.git
|
* `./result/bin/darwin-installer`
|
||||||
homesick symlink dotfiles
|
1. Add home-manager channel: `nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager`
|
||||||
|
1. Link `./darwin/configuration.nix` to `~/.nixpkgs/darwin-configuration.nix`
|
||||||
## Updates
|
1. Run `darwin-rebuild switch`
|
||||||
|
|
||||||
homesick pull dotfiles && homesick symlink dotfiles
|
|
||||||
|
67
install.sh
67
install.sh
@ -1,67 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
add_omz() {
|
|
||||||
if [ ! -d ~/.oh-my-zsh ]; then
|
|
||||||
echo "Installing oh-my-zsh..."
|
|
||||||
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
|
||||||
chsh -s /bin/zsh
|
|
||||||
else
|
|
||||||
echo "Oh-My-Zsh already installed."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
add_homesick() {
|
|
||||||
if [ ! -d ~/.homesick ]; then
|
|
||||||
echo "Installing homesick..."
|
|
||||||
homesick clone https://github.com/walkah/dotfiles.git
|
|
||||||
homesick symlink
|
|
||||||
else
|
|
||||||
echo "Homesick already installed."
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
install_macos() {
|
|
||||||
if [ ! -x "$(command -v git)" ]; then
|
|
||||||
echo "Installing xcode commandline tools..."
|
|
||||||
sudo xcode-select --install
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -x "$(command -v brew)" ]; then
|
|
||||||
echo "Installing homebrew..."
|
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
||||||
else
|
|
||||||
echo "Homebrew already installed."
|
|
||||||
fi
|
|
||||||
|
|
||||||
add_omz
|
|
||||||
|
|
||||||
sudo gem install homesick
|
|
||||||
add_homesick
|
|
||||||
|
|
||||||
echo "Initial brew bundle..."
|
|
||||||
brew bundle --global
|
|
||||||
}
|
|
||||||
|
|
||||||
install_linux() {
|
|
||||||
sudo apt install zsh curl git homesick
|
|
||||||
sudo snap install starship
|
|
||||||
|
|
||||||
add_omz
|
|
||||||
|
|
||||||
add_homesick
|
|
||||||
|
|
||||||
if [ ! -d ~/.asdf ]; then
|
|
||||||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Actual installer
|
|
||||||
case "$OSTYPE" in
|
|
||||||
darwin*)
|
|
||||||
install_macos
|
|
||||||
;;
|
|
||||||
linux*)
|
|
||||||
install_linux
|
|
||||||
;;
|
|
||||||
esac
|
|
Loading…
x
Reference in New Issue
Block a user