From 7dbaf879081eac917d62e374c9fe71d385e0c88c Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 14 Aug 2023 00:32:53 +0800 Subject: [PATCH] fix: link --- docs/nixos-with-flakes/modularize-the-configuration.md | 4 ++-- docs/zh/nixos-with-flakes/modularize-the-configuration.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/nixos-with-flakes/modularize-the-configuration.md b/docs/nixos-with-flakes/modularize-the-configuration.md index 05e514f..e0171f6 100644 --- a/docs/nixos-with-flakes/modularize-the-configuration.md +++ b/docs/nixos-with-flakes/modularize-the-configuration.md @@ -120,7 +120,7 @@ The lower the `priority` value, the higher the actual priority. As a result, `li Using these functions can be very helpful for modularizing the configuration. You can set default values in a low-level module (base module) and force values in a high-level module. -For example, in my configuration at [ryan4yin/nix-config/blob/main/modules/nixos/core-server.nix#L30](https://github.com/ryan4yin/nix-config/blob/main/modules/nixos/core-server.nix#L30), I define default values like this: +For example, in my configuration at [ryan4yin/nix-config/blob/c515ea9/modules/nixos/core-server.nix](https://github.com/ryan4yin/nix-config/blob/c515ea9/modules/nixos/core-server.nix#L32), I define default values like this: ```nix{6} { lib, pkgs, ... }: @@ -134,7 +134,7 @@ For example, in my configuration at [ryan4yin/nix-config/blob/main/modules/nixos } ``` -Then, for my desktop machine, I override the value in [ryan4yin/nix-config/blob/main/modules/nixos/core-desktop.nix#L15](https://github.com/ryan4yin/nix-config/blob/main/modules/nixos/core-desktop.nix#L15) like this: +Then, for my desktop machine, I override the value in [ryan4yin/nix-config/blob/c515ea9/modules/nixos/core-desktop.nix](https://github.com/ryan4yin/nix-config/blob/c515ea9/modules/nixos/core-desktop.nix#L18) like this: ```nix{10} { lib, pkgs, ... }: diff --git a/docs/zh/nixos-with-flakes/modularize-the-configuration.md b/docs/zh/nixos-with-flakes/modularize-the-configuration.md index 41d4a91..2553ea6 100644 --- a/docs/zh/nixos-with-flakes/modularize-the-configuration.md +++ b/docs/zh/nixos-with-flakes/modularize-the-configuration.md @@ -126,7 +126,7 @@ Nix Flakes 对目录结构没有任何要求,你可以参考上面的例子, 这几个函数在模块化 NixOS 配置中非常有用,因为你可以在低层级的模块(base module)中设置默认值,然后在高层级的模块(high-level module)中设置优先级更高的值。 -举个例子,我在这里定义了一个默认值: +举个例子,我在这里定义了一个默认值: ```nix{6} { lib, pkgs, ... }: @@ -140,7 +140,7 @@ Nix Flakes 对目录结构没有任何要求,你可以参考上面的例子, } ``` -然后在桌面机器的配置中,我强制覆盖了默认值: +然后在桌面机器的配置中,我强制覆盖了默认值: ```nix{10} { lib, pkgs, ... }: