User contributions for Weijia
Appearance
28 August 2025
- 19:2519:25, 28 August 2025 diff hist −54 Flakes/zh Created page with "添加如下内容至您的 home manager 配置:" Tags: Mobile edit Mobile web edit
- 19:2519:25, 28 August 2025 diff hist +65 N Translations:Flakes/11/zh Created page with "添加如下内容至您的 home manager 配置:" current
- 19:2419:24, 28 August 2025 diff hist −56 Flakes/zh Created page with "====Home Manager====" Tags: Mobile edit Mobile web edit
- 19:2419:24, 28 August 2025 diff hist +20 N Translations:Flakes/10/zh Created page with "====Home Manager====" current
- 19:2419:24, 28 August 2025 diff hist −66 Flakes/zh Created page with "添加如下内容至 NixOS 配置:"
- 19:2419:24, 28 August 2025 diff hist +128 N Translations:Flakes/8/zh Created page with "添加如下内容至 NixOS 配置:" current
- 19:2419:24, 28 August 2025 diff hist −56 Flakes/zh Created page with "==== NixOS ===="
- 19:2419:24, 28 August 2025 diff hist +15 N Translations:Flakes/7/zh Created page with "==== NixOS ====" current
- 19:2419:24, 28 August 2025 diff hist −17 Flakes/zh Created page with "=== 永久启用 Flakes ==="
- 19:2419:24, 28 August 2025 diff hist +27 N Translations:Flakes/193/zh Created page with "=== 永久启用 Flakes ===" current
- 19:2419:24, 28 August 2025 diff hist −61 Flakes/zh Created page with "当使用任意 <code>nix</code> 命令时,添加如下命令行参数:" Tags: Mobile edit Mobile web edit
- 19:2419:24, 28 August 2025 diff hist +91 N Translations:Flakes/6/zh Created page with "当使用任意 <code>nix</code> 命令时,添加如下命令行参数:" current
- 19:2419:24, 28 August 2025 diff hist −17 Flakes/zh Created page with "=== 临时启用 Flakes ==="
- 19:2419:24, 28 August 2025 diff hist +27 N Translations:Flakes/5/zh Created page with "=== 临时启用 Flakes ===" current
- 19:2419:24, 28 August 2025 diff hist −30 Flakes/zh Created page with "== 设置 ==" Tags: Mobile edit Mobile web edit
- 19:2419:24, 28 August 2025 diff hist +12 N Translations:Flakes/192/zh Created page with "== 设置 ==" current
- 19:2419:24, 28 August 2025 diff hist −191 Flakes/zh Created page with "=== Nix 配置 === 为了推导 flake,您可以覆盖 <code>nix.conf</code> 文件中设置的全局 Nix 配置。例如,这可用于设置特定项目的二进制缓存源,同时保持全局配置不变。Flake 文件中可包含一个 nixConfig 属性,并在其中设置相关配置。例如,启用 nix-community 二进制缓存可以通过以下方式实现: {{File|3=<nowiki>{ ... nixConfig = { extra-substituters = [ "https://nix-community.cach..."
- 19:2419:24, 28 August 2025 diff hist +853 N Translations:Flakes/191/zh Created page with "=== Nix 配置 === 为了推导 flake,您可以覆盖 <code>nix.conf</code> 文件中设置的全局 Nix 配置。例如,这可用于设置特定项目的二进制缓存源,同时保持全局配置不变。Flake 文件中可包含一个 nixConfig 属性,并在其中设置相关配置。例如,启用 nix-community 二进制缓存可以通过以下方式实现: {{File|3=<nowiki>{ ... nixConfig = { extra-substituters = [ "https://nix-community.cach..."
- 19:2419:24, 28 August 2025 diff hist −78 Flakes/zh Created page with "}; }</nowiki>|name=flake.nix|lang=nix}} 在上述示例中,您可以看到对该 flake 的'''描述'''、指定为某 Github 仓库特定分支的'''输入'''(此为 <code>nixos/nixpkgs</code> 仓库的 <code>nixos-unstable</code> 分支)以及一个使用该输入的'''输出'''。该输出简单地指定了该 flake 包含一个用于 x86_64 架构名为 <code>hello</code> 的包。即使您的 flake 输出不使用其输入(尽管这在实践中极不可能)..."
- 19:2419:24, 28 August 2025 diff hist +657 N Translations:Flakes/190/zh Created page with "}; }</nowiki>|name=flake.nix|lang=nix}} 在上述示例中,您可以看到对该 flake 的'''描述'''、指定为某 Github 仓库特定分支的'''输入'''(此为 <code>nixos/nixpkgs</code> 仓库的 <code>nixos-unstable</code> 分支)以及一个使用该输入的'''输出'''。该输出简单地指定了该 flake 包含一个用于 x86_64 架构名为 <code>hello</code> 的包。即使您的 flake 输出不使用其输入(尽管这在实践中极不可能)..."
- 19:2419:24, 28 August 2025 diff hist −56 Flakes/zh Created page with "packages.x86_64-linux.default = self.packages.x86_64-linux.hello;" Tags: Mobile edit Mobile web edit
- 19:2419:24, 28 August 2025 diff hist +65 N Translations:Flakes/189/zh Created page with "packages.x86_64-linux.default = self.packages.x86_64-linux.hello;" current
- 19:2419:24, 28 August 2025 diff hist −56 Flakes/zh Created page with "packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;"
- 19:2319:23, 28 August 2025 diff hist +72 N Translations:Flakes/188/zh Created page with "packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;" current
- 19:2319:23, 28 August 2025 diff hist −56 Flakes/zh Created page with "outputs = { self, nixpkgs }: {"
- 19:2319:23, 28 August 2025 diff hist +30 N Translations:Flakes/187/zh Created page with "outputs = { self, nixpkgs }: {" current
- 19:2319:23, 28 August 2025 diff hist −56 Flakes/zh Created page with "inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; };" Tags: Mobile edit Mobile web edit
- 19:2319:23, 28 August 2025 diff hist +76 N Translations:Flakes/186/zh Created page with "inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; };" current
- 19:2319:23, 28 August 2025 diff hist +7 Flakes/zh Created page with "== Flake 文件结构 == 一个最小化的 flake 文件包含该 flake 的描述(description),一组输入依赖项(inputs)和一个输出(outputs)。您可以随时使用 <code>nix flake init</code> 命令来生成一个非常基础的 flake 文件。这将在当前目录下创建一个名为 <code>flake.nix</code> 的文件,其内容类似于: {{File|3=<nowiki>{ description = "一个非常基础的 flake";"
- 19:2319:23, 28 August 2025 diff hist +432 N Translations:Flakes/185/zh Created page with "== Flake 文件结构 == 一个最小化的 flake 文件包含该 flake 的描述(description),一组输入依赖项(inputs)和一个输出(outputs)。您可以随时使用 <code>nix flake init</code> 命令来生成一个非常基础的 flake 文件。这将在当前目录下创建一个名为 <code>flake.nix</code> 的文件,其内容类似于: {{File|3=<nowiki>{ description = "一个非常基础的 flake";"
- 19:2319:23, 28 August 2025 diff hist −52 Flakes/zh Created page with "Flakes 还允许锁定引用和版本,然后通过 inputs {{cite manual|nix|command-ref/new-cli/nix3-flake-lock|number=7.5.19|title=nix flake lock}}{{cite manual|nix|command-ref/new-cli/nix3-flake-info|number=7.5.17|title=nix flake info}} 以可编程方式进行查询和更新。此外,一个实验性的 CLI 实用程序接受 flake 引用作为参数,该引用指向用于构建、运行和部署软件包的表达式。{{Cite manual|nix|command-ref/new-cli/nix|num..." Tags: Mobile edit Mobile web edit
- 19:2319:23, 28 August 2025 diff hist +496 N Translations:Flakes/184/zh Created page with "Flakes 还允许锁定引用和版本,然后通过 inputs {{cite manual|nix|command-ref/new-cli/nix3-flake-lock|number=7.5.19|title=nix flake lock}}{{cite manual|nix|command-ref/new-cli/nix3-flake-info|number=7.5.17|title=nix flake info}} 以可编程方式进行查询和更新。此外,一个实验性的 CLI 实用程序接受 flake 引用作为参数,该引用指向用于构建、运行和部署软件包的表达式。{{Cite manual|nix|command-ref/new-cli/nix|num..." current
- 19:2319:23, 28 August 2025 diff hist −96 Flakes/zh Created page with "Flake 是一个直接包含 <code>flake.nix</code> 文件的目录,该文件内容遵循一种特定结构。Flakes 引入了一种类似 URL 的语法{{Cite manual|nix|command-ref/new-cli/nix3-flake|number=8.5.17|title=nix flake|subsection=url-like-syntax|subtitle=URL-like syntax}} 来指定远程资源。为了简化这种 URL 语法,Flakes 使用符号标识符注册表{{Cite manual|nix|command-ref/new-cli/nix3-registry|number=8.5.62|title=nix registry}},这允..."
- 19:2319:23, 28 August 2025 diff hist +554 N Translations:Flakes/183/zh Created page with "Flake 是一个直接包含 <code>flake.nix</code> 文件的目录,该文件内容遵循一种特定结构。Flakes 引入了一种类似 URL 的语法{{Cite manual|nix|command-ref/new-cli/nix3-flake|number=8.5.17|title=nix flake|subsection=url-like-syntax|subtitle=URL-like syntax}} 来指定远程资源。为了简化这种 URL 语法,Flakes 使用符号标识符注册表{{Cite manual|nix|command-ref/new-cli/nix3-registry|number=8.5.62|title=nix registry}},这允..." current
- 19:2219:22, 28 August 2025 diff hist −105 Flakes/zh Created page with "'''Nix Flakes''' 是 Nix 2.4 版本中首次引入的一项实验性功能{{Cite manual|nix|development/experimental-features|number=13.8|title=Experimental Features|subsection=xp-feature-flakes|subtitle=flakes}}{{Cite manual|nix|release-notes/rl-2.4|number=14.27|title=Release 2.4 (2021-11-01)}},旨在解决 Nix 生态系统许多领域的改进问题:它们为 Nix 项目提供了一个统一结构、允许固定每个依赖项的特..."
- 19:2219:22, 28 August 2025 diff hist +597 N Translations:Flakes/182/zh Created page with "'''Nix Flakes''' 是 Nix 2.4 版本中首次引入的一项实验性功能{{Cite manual|nix|development/experimental-features|number=13.8|title=Experimental Features|subsection=xp-feature-flakes|subtitle=flakes}}{{Cite manual|nix|release-notes/rl-2.4|number=14.27|title=Release 2.4 (2021-11-01)}},旨在解决 Nix 生态系统许多领域的改进问题:它们为 Nix 项目提供了一个统一结构、允许固定每个依赖项的特..."
- 19:2219:22, 28 August 2025 diff hist +30,483 N Flakes/zh Created page with "{{Cleanup}}"
- 19:2219:22, 28 August 2025 diff hist +11 N Translations:Flakes/1/zh Created page with "{{Cleanup}}" current
- 19:2219:22, 28 August 2025 diff hist +6 N Translations:Flakes/Page display title/zh Created page with "Flakes" current
- 19:1619:16, 28 August 2025 diff hist −83 Install NixOS on Amazon EC2/zh Created page with "通过 SSH 连接到新启动的 EC2 实例时,可能会要求输入密码。这似乎是因为 <code>amazon-init</code> systemd 服务仍在读取用户数据。请退出当前的 SSH 连接,并在几分钟后重试。" current
- 19:1619:16, 28 August 2025 diff hist +223 N Translations:Install NixOS on Amazon EC2/11/zh Created page with "通过 SSH 连接到新启动的 EC2 实例时,可能会要求输入密码。这似乎是因为 <code>amazon-init</code> systemd 服务仍在读取用户数据。请退出当前的 SSH 连接,并在几分钟后重试。" current
- 19:1619:16, 28 August 2025 diff hist −14 Install NixOS on Amazon EC2/zh Created page with "=== SSH 要求输入密码 ===" Tags: Mobile edit Mobile web edit
- 19:1619:16, 28 August 2025 diff hist +30 N Translations:Install NixOS on Amazon EC2/10/zh Created page with "=== SSH 要求输入密码 ===" current
- 19:1619:16, 28 August 2025 diff hist −24 Install NixOS on Amazon EC2/zh Created page with "== 故障排除 =="
- 19:1619:16, 28 August 2025 diff hist +18 N Translations:Install NixOS on Amazon EC2/9/zh Created page with "== 故障排除 ==" current
- 19:1519:15, 28 August 2025 diff hist −54 Install NixOS on Amazon EC2/zh Created page with "[http://jackkelly.name/blog/archives/2020/08/30/building_and_importing_nixos_amis_on_ec2/ 在 EC2 上构建和导入 NixOS AMI] 作者:Jack Kelly"
- 19:1519:15, 28 August 2025 diff hist +147 N Translations:Install NixOS on Amazon EC2/8/zh Created page with "[http://jackkelly.name/blog/archives/2020/08/30/building_and_importing_nixos_amis_on_ec2/ 在 EC2 上构建和导入 NixOS AMI] 作者:Jack Kelly" current
- 19:1519:15, 28 August 2025 diff hist −24 Install NixOS on Amazon EC2/zh Created page with "== 其他资源 =="
- 19:1519:15, 28 August 2025 diff hist +18 N Translations:Install NixOS on Amazon EC2/7/zh Created page with "== 其他资源 ==" current
- 19:1519:15, 28 August 2025 diff hist −80 Install NixOS on Amazon EC2/zh Created page with "目前,[https://github.com/nix-community/nixos-generators nixos-generators] 项目是创建您自己的 NixOS AMI 的最佳方法。请遵循 <code>nixos-generators</code> 提供的说明,然后遵循 [https://docs.aws.amazon.com/vm-import/latest/userguide/what-is-vmimport.html AWS 提供的介绍]。"