mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-12-29 01:58:52 +01:00
feat: minor updates
This commit is contained in:
parent
2df64919e0
commit
275724e82e
@ -128,10 +128,11 @@ Note that the copied template cannot be used directly. You need to modify it to
|
||||
# lib: the nixpkgs function library, which provides many
|
||||
# useful functions for operating Nix expressions:
|
||||
# https://nixos.org/manual/nixpkgs/stable/#id-1.4
|
||||
# config: all config options of the current flake
|
||||
# config: all config options of the current flake, every useful
|
||||
# options: all options defined in all NixOS Modules
|
||||
# in the current flake
|
||||
# pkgs: a collection of all packages defined in nixpkgs.
|
||||
# pkgs: a collection of all packages defined in nixpkgs,
|
||||
# plus a set of functions related to packaging.
|
||||
# you can assume its default value is
|
||||
# `nixpkgs.legacyPackages."${system}"` for now.
|
||||
# can be customed by `nixpkgs.pkgs` option
|
||||
|
@ -120,9 +120,9 @@ cat flake.nix
|
||||
#
|
||||
# lib: nixpkgs 自带的函数库,提供了许多操作 Nix 表达式的实用函数
|
||||
# 详见 https://nixos.org/manual/nixpkgs/stable/#id-1.4
|
||||
# config: 当前 flake 的所有 config 参数的集何
|
||||
# config: 当前 flake 的所有 config 参数的集合,比较常用
|
||||
# options: 当前 flake 中所有 NixOS Modules 中定义的所有参数的集合
|
||||
# pkgs: 一个包含所有 nixpkgs 包的集合
|
||||
# pkgs: 一个包含所有 nixpkgs 包的集合,它也提供了许多相关的工具函数
|
||||
# 入门阶段可以认为它的默认值为 `nixpkgs.legacyPackages."${system}"`
|
||||
# 可通过 `nixpkgs.pkgs` 这个 option 来自定义 pkgs 的值
|
||||
# modulesPath: 默认 nixpkgs 的内置 Modules 文件夹路径,
|
||||
|
Loading…
Reference in New Issue
Block a user