Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

プロファイルによる環境の使い分け(personal / work)

flake.nix の各マシン定義は profile"personal" または "work" を持ち、 home.nixprofileImports がこの値に応じて import するモジュールを切り替えます。

業務用マシンの設定を追加・変更する場合

  • 差分は if 分岐ではなく profileImports = { personal = [...]; work = [...]; } というテーブルで 列挙する方針です。個別の module 内で profile を見て分岐させることはしません。
  • 実マシンの profileflake.nixmachines / darwinMachines に定義します。