Skip to content

polo871209/dotfiles

Repository files navigation

Init New Mac

# intsall nix
git clone https://github.com/polo871209/dotfiles.git
sh <(curl -L https://nixos.org/nix/install)
nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/dotfiles/nix
darwin-rebuild switch --extra-experimental-features "nix-command flakes"  --flake ~/dotfiles/nix

# set XDG_CONFIG_HOME
cat ~/dotfiles/dot_zshenv >| ~/.zshenv

# create config symlinks
stow .

# gen key and add to github
ssh-keygen -t ed25519

# setup notes(login google drive first)
mkdir ~/valuts && cd ~/Google\ Drive/My\ Drive/vaults && stow .

# supress prompt
cd
touch .hushlogin