On Sun, Jul 17, 2016 at 7:49 PM, Ludovic Courtès <l...@gnu.org> wrote: > Vincent Legoll <vincent.leg...@gmail.com> skribis: > >> Would the following work in the mean time ? >> >> 1. Adding the following to gnu/packages/linux.scm : >> >> (define-public linux-libre-config variant >> (package >> (inherit linux-libre) >> (native-inputs >> (let ((conf (kernel-config (or (%current-target-system) >> (%current-system)) >> #:variant variant))) >> `(,@(alist-delete "kconfig" (package-native-inputs linux-libre)) >> ("kconfig" ,conf)))))) > > This should roughly work. However, I think one can already provide > their own config file with something like: > > (define-public my-own-linux-libre > (package > (inherit linux-libre) > (native-inputs > `(("kconfig" ,(local-file "./my-kernel.conf")) > ,@(alist-delete "kconfig" (package-native-inputs linux-libre)))))) > > … which can be dropped in a file in $GUIX_PACKAGE_PATH. > > It remains somewhat inconvenient, though.
Yes, that would be simpler. Does it have to be in root's $GUIX_PACKAGE_PATH, or can guix system reconfigure work as a user ? That would be a sufficiently good solution, I think... I'll try it. -- Vincent Legoll