From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: Using the =?utf-8?Q?daemon=E2=80=99s?= default settings Date: Fri, 27 Mar 2015 14:44:08 -0400 Message-ID: <87619mmgav.fsf@netris.org> References: <20150322224357.10349.62362@vcs.savannah.gnu.org> <87egofr30v.fsf@netris.org> <87pp7zv2q2.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]:34454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZEd-0006Rn-NK for guix-devel@gnu.org; Fri, 27 Mar 2015 14:44:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbZEZ-00044L-OI for guix-devel@gnu.org; Fri, 27 Mar 2015 14:43:59 -0400 In-Reply-To: <87pp7zv2q2.fsf_-_@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Mon, 23 Mar 2015 22:11:17 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >> Does this mean that even if I've configured my daemon to use a different >> set of substitute-urls, when I run 'guix' as root those settings will be >> overridden? > > Yes. > >> That seems suboptimal. > > Right. > >> We have a similar problem with the values of --cores and --max-jobs >> passed to guix-daemon being ignored because they are always overridden >> by our client. > > Indeed. > >> How can we fix these so that the daemon's settings are used unless the >> user specifically asks to override them in the client? > > If you look at nix-daemon.cc:543, there=E2=80=99s currently no way for a = client > to say =E2=80=9Cdefault value.=E2=80=9D The only way for a client to get= the daemon=E2=80=99s > default values is to not call the =E2=80=98set-build-options=E2=80=99 RPC= at all; it=E2=80=99s > all or nothing. Ah, okay. > I think the way forward would be to add a new RPC, say > =E2=80=98set-build-options2=E2=80=99, that would take a list of key/value= pairs, where > keys are option names. Options not mentioned in a =E2=80=98set-build-opt= ions2=E2=80=99 > call would keep their default value. > > How does that sound? Sounds good to me! Thanks, Mark