From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mekeor Melire Subject: Re: Git-style aliases in Guix? Date: Mon, 27 Feb 2017 20:01:56 +0100 Message-ID: <87o9xna257.fsf@gmail.com> References: <1488056366.2392643.892804736.71478AA0@webmail.messagingengine.com> <877f4c1wo1.fsf@gmail.com> <20170227055436.GA5200@jocasta.intra> <87d1e4ave8.fsf@gmail.com> <20170227151517.GA9476@jocasta.intra> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciQYe-0007wp-2m for guix-devel@gnu.org; Mon, 27 Feb 2017 14:02:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciQYc-0005Eq-H0 for guix-devel@gnu.org; Mon, 27 Feb 2017 14:02:04 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:36817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciQYc-0005Ei-Ay for guix-devel@gnu.org; Mon, 27 Feb 2017 14:02:02 -0500 Received: by mail-wm0-x242.google.com with SMTP id r18so14877204wmd.3 for ; Mon, 27 Feb 2017 11:02:02 -0800 (PST) In-reply-to: <20170227151517.GA9476@jocasta.intra> 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" To: John Darrington Cc: guix-devel@gnu.org John Darrington writes: > On Mon, Feb 27, 2017 at 09:30:07AM +0100, Mekeor Melire wrote: > > John Darrington writes: > > > On Sun, Feb 26, 2017 at 10:15:10PM +0100, Mekeor Melire wrote: > > > > Concerning how to implement this alias feature within Guix, I'd first > > like to pose a much broader question. So, on GuixSD you have a > > configuration, written in Scheme, for your operating system. Couldn't we > > make Guix have a scheme-configuration file for itself, as well? > > > > We do. guix/config.scm > > How can you configure Guix itself in your config.scm? I'm only aware of > the operating-system declaration which is used to configure the OS, not > Guix itself. > > What kind of configuration had you in mind? So, `operating-system` let's you declare an operating system. What if there was a Scheme function called `guix` or so which allowed you to configure Guix itself? Then, defining Guix aliases could look as follows; maybe saved in a file called guix.scm: (guix (aliases '( ("p" . "package") ("s" . "package -s") ("m" . "package -m")))) And similar to `operating-system`, there would be many other configuration fields...