20 lines
547 B
Markdown
20 lines
547 B
Markdown
# Building the custom kernel
|
|
|
|
On a NIX machine:
|
|
```bash
|
|
export NIX_BUILD_CORES=0
|
|
nix-build '<nixpkgs/nixos>' -A config.system.build.kernel --arg configuration ./custom-kernel.nix
|
|
```
|
|
|
|
# Uploading the kernel as an artifact to Gitea
|
|
|
|
1. Create a tarball of the built kernel:
|
|
```bash
|
|
mkdir result-writable
|
|
cp -rL result/lib/modules/6.6.63/kernel result-writable/kernel
|
|
sudo chmod -R u+rwX,g+rwX,o+rX result-writable
|
|
tar -czf custom-kernel.tar.gz -C result-writable .
|
|
rm -rf result-writable
|
|
```
|
|
|
|
2. Create a new release on Gitea and upload the tarball |