Skip to content

rin2yh/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

381 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Dotfiles

Setup

make

This will:

  1. Initialize git submodules
  2. Install mise (if not installed)
  3. Install Nix (if not installed)
  4. Apply nix-darwin + home-manager configuration (darwin-rebuild switch --flake .#<hostname>)
  5. Install development tools (mise install, gopls)

Individual Targets

make submodule-init   # Initialize and update git submodules
make mise-install     # Install mise via curl (if not installed)
make nix-install      # Install Nix via official installer (if not installed)
make darwin-switch    # Apply nix-darwin + home-manager configuration (flake)
make tools            # Install development tools (mise install, gopls)
make help             # Show available targets

Structure

.
├── flake.nix
├── darwin/         # nix-darwin システム設定 + home-manager 統合
├── home/           # home-manager 配下の各ツール設定
└── Makefile

Notes

  • home/ 配下のファイルは mkOutOfStoreSymlink でリポジトリ実体への symlink として配置されている。既存ファイル(.zshrc / nvim/ / claude/CLAUDE.md など)の内容だけを編集する場合、darwin-rebuild switch は不要で保存すれば即反映される。
  • 以下のケースでは make darwin-switch が必要:
    • home/home.nixhome.packages にパッケージを追加/削除
    • home.file / xdg.configFile に新しい symlink エントリを追加
    • darwin/ 配下 (configuration.nix / homebrew.nix など) の変更
    • flake.nix / flake.lock の更新
  • flake.lock を更新する場合は nix flake update 後に make darwin-switch

About

my dotfiles

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors