Main public logs
Appearance
Combined display of all available logs of Official NixOS Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 19:38, 28 August 2025 Weijia talk contribs created page Translations:Flakes/230/zh (Created page with "{{references}}")
- 19:38, 28 August 2025 Weijia talk contribs created page Translations:Flakes/181/zh (Created page with "* [https://github.com/nix-community/todomvc-nix 构建 Rust 和 Haskell 的 flakes]")
- 19:38, 28 August 2025 Weijia talk contribs created page Translations:Flakes/229/zh (Created page with "* flake-compat:Flakes 兼容层")
- 19:38, 28 August 2025 Weijia talk contribs created page Translations:Flakes/228/zh (Created page with "* flake-parts:帮助编写模块化、结构化 Flakes 的库")
- 19:38, 28 August 2025 Weijia talk contribs created page Translations:Flakes/179/zh (Created page with "* flake-utils:一个用于简化 Flakes 编写、避免样板代码的库")
- 19:38, 28 August 2025 Weijia talk contribs created page Translations:Flakes/227/zh (Created page with "=== Flake 实用模块 ===")
- 19:38, 28 August 2025 Weijia talk contribs created page Translations:Flakes/177/zh (Created page with "* [https://www.youtube.com/watch?v=QXUlhnhuRX4&list=PLgknCdxP89RcGPTjngfNR9WmBgvD_xW0l Nix flakes 101: Introduction to nix flakes] (Jörg Thalheim, 2020) YouTube 视频")
- 19:37, 28 August 2025 Weijia talk contribs created page Translations:Flakes/175/zh (Created page with "* [https://www.tweag.io/blog/2020-07-31-nixos-flakes/ Nix Flakes, 第三节:管理 NixOS 系统] (Eelco Dolstra, 2020)")
- 19:37, 28 August 2025 Weijia talk contribs created page Translations:Flakes/174/zh (Created page with "* [https://www.tweag.io/blog/2020-06-25-eval-cache/ Nix Flakes, 第二节:推导缓存] (Eelco Dolstra, 2020)")
- 19:36, 28 August 2025 Weijia talk contribs created page Translations:Flakes/173/zh (Created page with "* [https://www.tweag.io/blog/2020-05-25-flakes/ Nix Flakes, 第一节:介绍和教程] (Eelco Dolstra, 2020)")
- 19:36, 28 August 2025 Weijia talk contribs created page Translations:Flakes/172/zh (Created page with "* [https://serokell.io/blog/practical-nix-flakes Practical Nix Flakes] (Alexander Bantyev, 2021) - 关于使用 Nix 和 Flakes 的介绍文章。")
- 19:35, 28 August 2025 Weijia talk contribs created page Translations:Flakes/171/zh (Created page with "* [https://xeiaso.net/blog/nix-flakes-1-2022-02-21 Nix Flakes:一个简要介绍] (Xe Iaso, 2022)")
- 19:35, 28 August 2025 Weijia talk contribs created page Translations:Flakes/170/zh (Created page with "* [https://github.com/ryan4yin/nixos-and-flakes-book NixOS & Flakes Book](Ryan4yin, 2023) - 🛠️ ❤️ 一本非官方的 NixOS & Flakes 新手入门书籍。")
- 19:35, 28 August 2025 Weijia talk contribs created page Translations:Flakes/169/zh (Created page with "* [https://jade.fyi/blog/flakes-arent-real/ Flakes 幻象,亦非洪水猛兽] (Jade Lovelace, 2024)")
- 19:34, 28 August 2025 Weijia talk contribs created page Translations:Flakes/226/zh (Created page with "=== 指南 ===")
- 19:34, 28 August 2025 Weijia talk contribs created page Translations:Flakes/168/zh (Created page with "* [https://github.com/NixOS/rfcs/pull/49 RFC 49] (2019) - 原始 Flakes 规范")
- 19:34, 28 August 2025 Weijia talk contribs created page Translations:Flakes/178/zh (Created page with "* [https://github.com/NixOS/nix/blob/master/src/nix/flake.md 更详细地描述 Flakes Inputs 的规范]")
- 19:33, 28 August 2025 Weijia talk contribs created page Translations:Flakes/176/zh (Created page with "* [https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html Nix flake 命令参考手册] - 关于 Flakes 及其各部分的更多附加细节。")
- 19:33, 28 August 2025 Weijia talk contribs created page Translations:Flakes/139/zh (Created page with "* [https://nix.dev/concepts/flakes Flakes] - nix.dev")
- 19:33, 28 August 2025 Weijia talk contribs created page Translations:Flakes/225/zh (Created page with "=== 官方来源 ===")
- 19:33, 28 August 2025 Weijia talk contribs created page Translations:Flakes/138/zh (Created page with "=== 另见 ===")
- 19:33, 28 August 2025 Weijia talk contribs created page Translations:Flakes/167/zh (Created page with "如果 Nix 警告您重定向的 flake 实际上并未用作已推导 flake 的输入,请尝试使用 <code>--inputs-from .</code> 标志。如果一切顺利,您应该能够在依赖项更改时执行 <code>buildPhase && installPhase</code> 操作,并使用新版本依赖重建您的程序,而''无需''退出开发 shell。")
- 19:33, 28 August 2025 Weijia talk contribs created page Translations:Flakes/166/zh (Created page with "现在您已经构建了依赖项,<code>consumexe</code> 可以将其作为输入。'''在另一个终端中''':")
- 19:33, 28 August 2025 Weijia talk contribs created page Translations:Flakes/136/zh (Created page with "考虑这样一个场景:您的可执行程序 <code>consumexe</code> 依赖于一个库 <code>libdep</code>。你希望同时开发这两个项目,并且对 <code>libdep</code> 的修改能够实时反映到 <code>consumexe</code> 中。这种工作流程可以通过以下方式实现:")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/165/zh (Created page with "使用 Nix 作为开发环境的一个常见痛点是,每次更新依赖项时都需要完全重构并重新进入开发 shell。<code>nix develop --redirect <flake> <directory></code> 命令允许您向 shell 提供可变的依赖项,就像它是由 Nix 构建的一样。")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/135/zh (Created page with "=== 直接依赖项的快速迭代 ===")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/133/zh (Created page with "当 git 文件夹存在时,flake 将仅复制在 git 中添加的文件,以最大限度地提高可复现性(因此,如果您忘记在代码库中添加本地文件,则在尝试编译时会直接出错)。但是,有时出于开发目的您可能需要创建一个备用的 flake 文件,例如包含您首选编辑器的配置,如[https://discourse.nixos.org/t/local-personal-development-tools-with-flakes/22714/8 此处所述],这种情况下当然无...")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/164/zh (Created page with "=== 如何在 git 中添加一个本地文件但不将其包含在提交中 ===")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/163/zh (Created page with "这允许构建尚未添加到 nixpkgs 的包。")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/132/zh (Created page with "请注意,这将下载 nixpkgs 的完整 tarball 压缩档。如果您已有本地克隆,由于增量压缩机制,使用它可能会更快:")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/162/zh (Created page with "这允许构建尚未添加到 nixpkgs 的包。")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/161/zh (Created page with "=== 构建一个添加至 PR 中的包 ===")
- 19:32, 28 August 2025 Weijia talk contribs created page Translations:Flakes/101/zh (Created page with "要自动推送''所有'' flake 输出,请查看 [https://github.com/srid/devour-flake#usage devour-flake]。")
- 19:31, 28 August 2025 Weijia talk contribs created page Translations:Flakes/224/zh (Created page with "=== 高效构建多个 Flake 输出 ===")
- 19:31, 28 August 2025 Weijia talk contribs created page Translations:Flakes/59/zh (Created page with "如果您想在启用了 Flakes 功能的系统上从常规 Nix 表达式中访问 flake,可以使用类似 <code>(builtins.getFlake "/path/to/directory").packages.x86_64-linux.default</code> 的代码,其中“directory”是包含 <code>flake.nix</code> 的目录。")
- 19:31, 28 August 2025 Weijia talk contribs created page Translations:Flakes/58/zh (Created page with "=== 从 Nix 表达式访问 Flakes ===")
- 19:31, 28 August 2025 Weijia talk contribs created page Translations:Flakes/50/zh (Created page with "=== 非 Flake 项目中的 Flake 支持 ===")
- 19:31, 28 August 2025 Weijia talk contribs created page Translations:Flakes/99/zh (Created page with "=== 推送 Flakes 至 Cachix ===")
- 19:31, 28 August 2025 Weijia talk contribs created page Translations:Flakes/98/zh (Created page with "在项目目录之间导航时,使用 Direnv 可以自动激活不同的 Nix shell。Nix 与 Direnv 的额外集成参阅 [https://github.com/nix-community/nix-direnv nix-direnv]。")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/97/zh (Created page with "=== 使用 direnv 自动切换 Nix shell ===")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/131/zh (Created page with "== 开发技巧 ==")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/222/zh (Created page with "关于详情与示例,请参阅 NixOS system configuration#Defining NixOS as a flake。")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/221/zh (Created page with "可使用 Flakes 管理 NixOS 系统配置,以获得可复现、声明式输入和简化更新的优点。")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/220/zh (Created page with "== 启用 Flake 的 NixOS 配置 ==")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/219/zh (Created page with "<syntaxhighlight lang="nix"> { inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; outputs = { self, nixpkgs, flake-compat }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; config.allowUnfree = true;}; in { ... }; } </syntaxhighlight>")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/218/zh (Created page with "为了在 flake 项目中允许使用 非自由软件,您需要在导入 Nixpkgs 时通过设置 <code>config.allowUnfree = true;</code> 来明确允许它。")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/129/zh (Created page with "=== 启用非自由软件 ===")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/217/zh (Created page with "要将 Overlays 与 Flakes 一起使用,请参阅 Overlays#In a Nix flake 页面。")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/216/zh (Created page with "=== 使用 overlays ===")
- 19:30, 28 August 2025 Weijia talk contribs created page Translations:Flakes/215/zh (Created page with "您还可以使用如 flake-utils 或 flake-parts 的第三方项目来编写,它们会提供代码来避免此类样板代码。为了避免多次重新定义程序,请参阅 Flake Utils#Defining a flake for multiple architectures")