feat: add replacement of Makefile - Justfile & Makefile.toml

This commit is contained in:
Ryan Yin 2023-07-03 00:19:29 +08:00
parent 153e941a05
commit 4b595a2c48
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Simplify NixOS-related commands # Simplify NixOS-related commands
I use Makefile to simplify NixOS-related commands, which is very convenient. 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: My Makefile looks like this:

View File

@ -5,6 +5,7 @@
在使用 NixOS 的过程中,我们会经常使用 `nixos-rebuild` 命令,经常需要输入一大堆参数,比较繁琐。 在使用 NixOS 的过程中,我们会经常使用 `nixos-rebuild` 命令,经常需要输入一大堆参数,比较繁琐。
所以我使用 Makefile 来管理我的 flake 配置相关的命令,简化使用。 所以我使用 Makefile 来管理我的 flake 配置相关的命令,简化使用。
你也可以使用其他类似的工具来干这个活(比如说 [just](https://github.com/casey/just) 跟 [cargo-make](https://github.com/sagiegurari/cargo-make)),这里我仅介绍下我的用法以供参考。
我的 Makefile 大概内容截取如下: 我的 Makefile 大概内容截取如下: