home-manager
nix-community/home-manager: Manage a user environment using Nix maintainer=@rycee
Home Manager Manual
Options
Appendix A. Home Manager Configuration Options
Release notes
Appendix D. Release Notes
Flake で使う場合
Home Manager Manual
Nix Home Manager のつまづき石をまとめる ||| Apribase
設定ファイルを作る
$ nix run home-manager/release-25.05 -- init --switch
??? これを nix-darwin で管理する方法がわからない
nix-darwin の設定もユーザー配下におく方式にした方がよさそう
totoroot/dotfiles: Dotfiles for my NixOS and nix-darwin systems
expede/dotfiles: Mostly Nix dotfiles
aostanin/nixos-config: NixOS Configuration
バージョンアップ
nixpkgs のチャネルに合わせたバージョンを使う
Home Manager Manual
最近は home manager で入れたアプリも何もせずとも Spotlight で検索できる
targets/darwin: init copyapps · nix-community/home-manager@4b846fa
ただし nixpkgs 25.11 かつ state version も 25.11 以上でないといけない
https://nix-community.github.io/home-manager/release-notes.xhtml#sec-release-25.11-state-version-changes
すでに ~/Applications/Home Manager App が存在する場合、権限エラーになるが、そのディレクトリを削除することで解決した