From e7165e2abddcd6338142c8f84853a991de6a01aa Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 8 Jul 2023 13:36:47 +0800 Subject: [PATCH] feat: highlight code blocks --- docs/nixos-with-flakes/nixos-with-flakes-enabled.md | 2 +- docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md index af7224e..1d485f0 100644 --- a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md +++ b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md @@ -142,7 +142,7 @@ Now let's learn how to install packages from other sources using Flakes. This pr First, we need to add Helix as an input in `flake.nix`: -```nix{10,19} +```nix{10,20} { description = "NixOS configuration of Ryan Yin"; diff --git a/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md b/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md index d98014d..5ed5626 100644 --- a/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md +++ b/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md @@ -140,7 +140,7 @@ cat flake.nix 现在我们学习下如何通过 Flakes 安装其他来源的软件包,这比直接安装 nixpkgs 要灵活很多,最显而易见的好处是你可以很方便地设定软件的版本。 以 [helix](https://github.com/helix-editor/helix) 编辑器为例,我们首先需要在 `flake.nix` 中添加 helix 这个 inputs 数据源: -```nix{10,19} +```nix{10,20} { description = "NixOS configuration of Ryan Yin"; @@ -158,7 +158,8 @@ cat flake.nix nixos-test = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; - # 将所有 inputs 参数设为所有子模块的特殊参数,这样就能在子模块中使用 helix 这个 inputs 了 + # 将所有 inputs 参数设为所有子模块的特殊参数, + # 这样就能在子模块中使用 helix 这个 inputs 了 specialArgs = inputs; modules = [ ./configuration.nix