mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-06-22 04:51:29 +02:00
feat: add replacement of Makefile - Justfile & Makefile.toml
This commit is contained in:
parent
153e941a05
commit
4b595a2c48
@ -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:
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
在使用 NixOS 的过程中,我们会经常使用 `nixos-rebuild` 命令,经常需要输入一大堆参数,比较繁琐。
|
||||
|
||||
所以我使用 Makefile 来管理我的 flake 配置相关的命令,简化使用。
|
||||
你也可以使用其他类似的工具来干这个活(比如说 [just](https://github.com/casey/just) 跟 [cargo-make](https://github.com/sagiegurari/cargo-make)),这里我仅介绍下我的用法以供参考。
|
||||
|
||||
我的 Makefile 大概内容截取如下:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user