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

Dotfiles for darwin (macos) using nix. I would like to support nix-darwin and flakes in the future, but I don't understand them at the moment. Every day this repository is growing.

License

Notifications You must be signed in to change notification settings

Coordinate-Cat/darwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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`