diff options
| author | Jacob First <5678215-fishyfriend_@users.noreply.gitlab.com> | 2020-03-25 04:59:03 -0400 |
|---|---|---|
| committer | fishyfriend_ <5678215-fishyfriend_@users.noreply.gitlab.com> | 2020-03-25 20:42:28 +0000 |
| commit | 3429bf94b8e47a51ddf7a7c5727c1d477d1d3630 (patch) | |
| tree | 34c968093008a9f304e68c9b21794fb7064f82e4 /README.org | |
| parent | dbbdf87e8acc2e1421003abfd3e556a96f464988 (diff) | |
README.org: advice for avoiding kernel rebuilds.
Closes #27.
Diffstat (limited to 'README.org')
| -rw-r--r-- | README.org | 38 |
1 files changed, 38 insertions, 0 deletions
| @@ -145,6 +145,44 @@ to load that module on boot, and blacklist conflicting kernel modules: | |||
| 145 | ...) | 145 | ...) |
| 146 | #+END_SRC | 146 | #+END_SRC |
| 147 | 147 | ||
| 148 | ** Avoiding kernel recompilation | ||
| 149 | |||
| 150 | Since prebuilt substitutes are not currently available for Nonguix, you may find | ||
| 151 | that ~guix system reconfigure~ recompiles the kernel frequently due to version | ||
| 152 | bumps in the kernel package. An inferior can be used to pin the kernel version | ||
| 153 | and avoid lengthy rebuilds. | ||
| 154 | |||
| 155 | You must pin both Guix and Nonguix, as the Nonguix kernel packages derive from | ||
| 156 | those in Guix (so changes in either could cause a rebuild). Your preferred kernel | ||
| 157 | version must be available in both pinned channels. | ||
| 158 | |||
| 159 | Consult the output of ~guix system describe~ to get the commits of Guix and | ||
| 160 | Nonguix for the current generation. Once you have determined the commits to use, | ||
| 161 | create an inferior in your system configuration file that pins the channels to | ||
| 162 | them. Then grab the appropriately-versioned Linux package from the inferior to | ||
| 163 | use as your kernel. | ||
| 164 | |||
| 165 | #+BEGIN_SRC scheme | ||
| 166 | (use-modules (srfi srfi-1) ; for `first' | ||
| 167 | (guix channels)) | ||
| 168 | (operating-system | ||
| 169 | (kernel | ||
| 170 | (let* | ||
| 171 | ((channels | ||
| 172 | (list (channel | ||
| 173 | (name 'nonguix) | ||
| 174 | (url "https://gitlab.com/nonguix/nonguix") | ||
| 175 | (commit "ff6ca98099c7c90e64256236a49ab21fa96fe11e")) | ||
| 176 | (channel | ||
| 177 | (name 'guix) | ||
| 178 | (url "https://git.savannah.gnu.org/git/guix.git") | ||
| 179 | (commit "3be96aa9d93ea760e2d965cb3ef03540f01a0a22")))) | ||
| 180 | (inferior | ||
| 181 | (inferior-for-channels channels))) | ||
| 182 | (first (lookup-inferior-packages inferior "linux" "5.4.21")))) | ||
| 183 | ...) | ||
| 184 | #+END_SRC | ||
| 185 | |||
| 148 | * Contributing | 186 | * Contributing |
| 149 | 187 | ||
| 150 | Contributions are welcome! If there's a package you would like to add, just | 188 | Contributions are welcome! If there's a package you would like to add, just |
