Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Jun 24, 2023
1 parent 02fe247 commit 0ebd07b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ bootargs=console=ttyS0,115200 root=/dev/mmcblk0p3 rootfstype=ext4 rootwait rw ea

看内容跟前面 NixOS 生成的 `extlinux.conf` 文件内容差不多,可以研究下。

如果是要生成 config.txt 的话,这个 arm64 的模版应该可以参考:

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-raspberrypi.nix

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-aarch64.nix

## See Also

There are other efforts to bring NixOS to RISC-V:
Expand Down
1 change: 1 addition & 0 deletions modules/rootfs.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ config, modulesPath, ... }: {

# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image.nix
imports = [
"${modulesPath}/installer/sd-card/sd-image.nix"
];
Expand Down

0 comments on commit 0ebd07b

Please sign in to comment.