This repository is darwin(macos) setup
macOS Monterey ver 12.5.1
MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)
2.3GHz DualCore IntelCore i5
16GB 2133 MHz LPDDR3
Intel Iris Plus Graphics 640 1536MB
Nix [⧉]
sh <(curl -L https://nixos.org/nix/install)
Quit Terminal
nix-shell -p nix-info --run "nix-info -m"
Error when doing sh <(curl -L https://nixos.org/nix/install)
error: failed to bootstrap /nix If you enabled FileVault after booting, this is likely a known issue
with macOS that you'll have to reboot to fix. If you didn't enable FV,
though, please open an issue describing how the system that you see
this error on was set up.
solution
- mac system settings > security and privacy > Filevault on/off > mac reboot
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path
Home-manager [⧉]
# home-manager
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
# nixpkgs
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
nix-shell '<home-manager>' -A install
Gitui [⧉]
make config file
mkdir ~/.ssh
cd ~/.ssh
touch config
vim config
write config
Host github github.com
HostName github.com
User git
IdentityFile ~/.ssh/github
make ssh-key
ssh-keygen -t ecdsa -C "example@gmail.com"
Type `github` in the first question
pbcopy < ~/.ssh/github.pub
ssh-add ~/.ssh/github
ssh -T git@github.com
cd ~/.config
rm -rf nixpkgs
git clone git@github.com:Coordinate-Cat/darwin.git nixpkgs
home-manager switch
source ~/.zshrc
Nix-Darwin [⧉]
Warning
LnL7/nix-darwin#188
idk yet
mkdir ~/.nixpkgs
ln -s ~/.config/nixpkgs/darwin-configuration.nix $HOME/.nixpkgs/darwin-configuration.nix
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer
darwin-rebuild switch
iTerm [⧉]
Theme: Everforest hard dark
VSCode [⧉]
Theme: Dark Hard High-Contrast
Extensions | URL |
---|---|
Nix | https://marketplace.visualstudio.com/items?itemName=bbenoist.Nix |
Everforest | https://marketplace.visualstudio.com/items?itemName=sainnhe.everforest |
Fig [⧉]
Settings > Dotfiles > ⋮ > Import Dotfiles
Wallpaper [⧉]
osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"~/.config/nixpkgs/bundle/wallpaper/wallpaper.jpg\" as POSIX file"
./bundle/wallpaper
Article [⧉]
Licence [⧉]
Command lists
============================
`checkhealth`