Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Latest commit

 

History

History
160 lines (115 loc) · 4.33 KB

README.md

File metadata and controls

160 lines (115 loc) · 4.33 KB

darwin

macOS

This repository is darwin(macos) setup

Hacking Machine

スクリーンショット 2022-10-21 23 28 15

スクリーンショット 2022-10-21 23 25 25

スクリーンショット 2022-10-21 23 34 34

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

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

  1. mac system settings > security and privacy > Filevault on/off > mac reboot

Rust

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 "[email protected]"
Type `github` in the first question
pbcopy < ~/.ssh/github.pub
ssh-add ~/.ssh/github
ssh -T [email protected]

Install this repository

cd ~/.config
rm -rf nixpkgs
git clone [email protected]: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 []

https://lmh.vercel.app/

Licence []

nvim

Command lists
============================
`checkhealth`