summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorJacob First <5678215-fishyfriend_@users.noreply.gitlab.com>2020-03-25 04:59:03 -0400
committerfishyfriend_ <5678215-fishyfriend_@users.noreply.gitlab.com>2020-03-25 20:42:28 +0000
commit3429bf94b8e47a51ddf7a7c5727c1d477d1d3630 (patch)
tree34c968093008a9f304e68c9b21794fb7064f82e4 /README.org
parentdbbdf87e8acc2e1421003abfd3e556a96f464988 (diff)
README.org: advice for avoiding kernel rebuilds.
Closes #27.
Diffstat (limited to 'README.org')
-rw-r--r--README.org38
1 files changed, 38 insertions, 0 deletions
diff --git a/README.org b/README.org
index 2cab4ef..8316bd9 100644
--- a/README.org
+++ b/README.org
@@ -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
150Since prebuilt substitutes are not currently available for Nonguix, you may find
151that ~guix system reconfigure~ recompiles the kernel frequently due to version
152bumps in the kernel package. An inferior can be used to pin the kernel version
153and avoid lengthy rebuilds.
154
155You must pin both Guix and Nonguix, as the Nonguix kernel packages derive from
156those in Guix (so changes in either could cause a rebuild). Your preferred kernel
157version must be available in both pinned channels.
158
159Consult the output of ~guix system describe~ to get the commits of Guix and
160Nonguix for the current generation. Once you have determined the commits to use,
161create an inferior in your system configuration file that pins the channels to
162them. Then grab the appropriately-versioned Linux package from the inferior to
163use 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
150Contributions are welcome! If there's a package you would like to add, just 188Contributions are welcome! If there's a package you would like to add, just