nixOS
Linux operation system based on Nix. We can use flakes as a configuration management of nixOS. flake has output type nixosConfigurations. This defines nixOS configurations.
Options for nixos configuration
Modules
デフォルト?のモジュールはここで定義されている
モジュールの option を検索できるページもある
options 配下に services を追加するのは慣習らしい
nixos-optionというコマンドがあるみたい
module で使うパッケージを指定するオプション
configは option で定義されている値を実際に設定する属性
config というスコープ?は省略してもいいらしい?
あるモジュールで import した他のモジュールの option もここで定義することができる
specialArgs
nixOS configuration をテストするために、ローカルで VM を立ち上げることができる