From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Legoll Subject: Re: Kernel config Date: Sun, 17 Jul 2016 20:51:23 +0200 Message-ID: References: <877fcliitk.fsf@elephly.net> <87twfp71pb.fsf@gnu.org> <87zipg17eh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOr9z-00032u-5v for help-guix@gnu.org; Sun, 17 Jul 2016 14:51:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOr9y-000166-Cy for help-guix@gnu.org; Sun, 17 Jul 2016 14:51:27 -0400 In-Reply-To: <87zipg17eh.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: help-guix@gnu.org On Sun, Jul 17, 2016 at 7:49 PM, Ludovic Court=C3=A8s wrote: > Vincent Legoll 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)))= ))) > > =E2=80=A6 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 reconfi= gure work as a user ? That would be a sufficiently good solution, I think... I'll try it. --=20 Vincent Legoll