273* の Mac の設定を nix-darwin で管理するリポジトリ。
flake.nix # 設定ファイル
modules/
defaults.nix # macOS システム設定 (system.defaults)
homebrew.nix # Homebrew アプリ (casks)
packages.nix # CLI ツール (environment.systemPackages)
xcode-select --install/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"インストール後、案内に従って eval "$(/opt/homebrew/bin/brew shellenv)" をシェルに追加する。
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- installインストール後、ターミナルを再起動する。
mkdir ~/nix-config
git clone https://github.com/273Do/273Do-Mac-Config.git ~/nix-config
cd ~/nix-configflake.nix の username をログインユーザー名に変更する。
username = "CHANGEME"; # 自分のユーザー名に変更sudo nix run nix-darwin -- switch --flake .#273do-mac-configmodules/ 以下のファイルを編集した後:
darwin-rebuild switch --flake .#273do-mac-config