From 4b595a2c48f771675267bc021ea5ab96b9f3594b Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 3 Jul 2023 00:19:29 +0800 Subject: [PATCH] feat: add replacement of Makefile - Justfile & Makefile.toml --- docs/best-practices/simplify-nixos-related-commands.md | 2 +- docs/zh/best-practices/simplify-nixos-related-commands.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/best-practices/simplify-nixos-related-commands.md b/docs/best-practices/simplify-nixos-related-commands.md index df490be..3e99ad3 100644 --- a/docs/best-practices/simplify-nixos-related-commands.md +++ b/docs/best-practices/simplify-nixos-related-commands.md @@ -1,7 +1,7 @@ # Simplify NixOS-related commands I use Makefile to simplify NixOS-related commands, which is very convenient. -You can also use other similar tools to do this job, here I will only introduce my usage as a reference. +You can also use other similar tools to do this job(such as [just](https://github.com/casey/just) and [cargo-make](https://github.com/sagiegurari/cargo-make)), here I will only introduce my usage as a reference. My Makefile looks like this: diff --git a/docs/zh/best-practices/simplify-nixos-related-commands.md b/docs/zh/best-practices/simplify-nixos-related-commands.md index c3fc859..6516174 100644 --- a/docs/zh/best-practices/simplify-nixos-related-commands.md +++ b/docs/zh/best-practices/simplify-nixos-related-commands.md @@ -5,6 +5,7 @@ 在使用 NixOS 的过程中,我们会经常使用 `nixos-rebuild` 命令,经常需要输入一大堆参数,比较繁琐。 所以我使用 Makefile 来管理我的 flake 配置相关的命令,简化使用。 +你也可以使用其他类似的工具来干这个活(比如说 [just](https://github.com/casey/just) 跟 [cargo-make](https://github.com/sagiegurari/cargo-make)),这里我仅介绍下我的用法以供参考。 我的 Makefile 大概内容截取如下: