NixOS on LoongArch: Difference between revisions
Add section on Hydra |
Add section on nix-loongarch-kernel |
||
| Line 26: | Line 26: | ||
== Hydra == | == Hydra == | ||
Nix4Loong maintains a [https://hydra.nix4loong.cn Hydra instance] that tracks the master and staging-next branches, as well as their corresponding release branches. The Hydra jobs are defined in the [https://github.com/Nix4Loong/hydra-jobs Nix4Loong/hydra-jobs] repository. | Nix4Loong maintains a [https://hydra.nix4loong.cn Hydra instance] that tracks the master and staging-next branches, as well as their corresponding release branches. The Hydra jobs are defined in the [https://github.com/Nix4Loong/hydra-jobs Nix4Loong/hydra-jobs] repository. | ||
== Linux kernel == | |||
Nixpkgs supports Linux kernels for LoongArch starting with Linux 6.16. Mainline kernels should generally work for most purposes, though newer kernel versions (such as <code>linuxPackages_latest</code>) are preferred for better hardware support. | |||
For additional hardware compatibility and fixes, Nix4Loong maintains a [https://github.com/Nix4Loong/nix-loongarch-kernel patched Linux kernel] incorporating some of the [https://loongfans.cn/en/sdk#unmerged-patches downstream patches] for LoongArch. It can be integrated into NixOS configurations using the provided module or overlay. | |||
Revision as of 23:36, 23 October 2026
NixOS does not provide official support for LoongArch architectures. For the loongarch64-linux architecture, however, community support is available through the Nix4Loong project.
Installation
For the loongarch64-linux architecture, graphical and minimal installation ISOs are available from Installation — Nix4Loong.
Once the ISO image is downloaded, refer to NixOS Installation Guide to get started.
Binary cache
Nix4Loong provides a binary cache with infrastructure support from Matrix at Sun Yat-sen University. An additional mirror is also maintained by the Nanjing University Linux Users Group:
nix.settings = {
substituters = [
"https://cache.nix4loong.cn" # "https://mirror.sysu.edu.cn/nix4loong/store"
"https://mirrors.nju.edu.cn/nix4loong/store"
];
trusted-public-keys = [
"cache.nix4loong.cn-1:zmkwLihdSUyy6OFSVgvK3br0EaUEczLiJgDfvOmm3pA="
];
};
Hydra
Nix4Loong maintains a Hydra instance that tracks the master and staging-next branches, as well as their corresponding release branches. The Hydra jobs are defined in the Nix4Loong/hydra-jobs repository.
Linux kernel
Nixpkgs supports Linux kernels for LoongArch starting with Linux 6.16. Mainline kernels should generally work for most purposes, though newer kernel versions (such as linuxPackages_latest) are preferred for better hardware support.
For additional hardware compatibility and fixes, Nix4Loong maintains a patched Linux kernel incorporating some of the downstream patches for LoongArch. It can be integrated into NixOS configurations using the provided module or overlay.