From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Defining user services in Guix. Date: Tue, 25 Apr 2017 10:36:27 +0200 Message-ID: <87fugwsx2s.fsf@elephly.net> References: <87o9vowfn0.fsf@gmail.com> <20170422203131.610f2a30@scratchpost.org> <878tmsghzk.fsf@gnu.org> <87inlvdr76.fsf@gmail.com> <87r30hbbi7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2vxe-0003Bn-2e for guix-devel@gnu.org; Tue, 25 Apr 2017 04:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2vxa-0007Vx-T4 for guix-devel@gnu.org; Tue, 25 Apr 2017 04:36:38 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2vxa-0007VE-LJ for guix-devel@gnu.org; Tue, 25 Apr 2017 04:36:34 -0400 In-reply-to: <87r30hbbi7.fsf@gmail.com> 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: Mekeor Melire Cc: guix-devel@gnu.org Mekeor Melire writes: > Mathieu Othacehe writes: > >>>> But you can start your own shepherd under your user account and have that shepherd manage user services - it's nice. >> >> Thank you Danny for the details procedure. I'll use that for now ! >> >>> Surely we could do better, like providing unprivileged users with a tool >>> akin to ‘guix system reconfigure’ but to manage their own services. >>> This came up several times in the past. >> >> Well, I think it's too bad that user services can't be handled as easily >> as the other services in Guix. >> >> I would be eager to participate to some sort of guix system reconfigure >> --user-services that would allow people to write and share their >> unpriviledged services :). > > Btw, beside user-specific services, we also already discussed > user-specific aliases for the `guix ...` commands. So now, there are at > least two things a user-specific configuration file could contain. :) > > One, the system.scm would contain > > (operating-system > ; ... > (services > ; ... > )) > > And secondly, each user could have a user.scm e.g. like > > (user-configuration > ; ... > (aliases > '( > ("sysrec" "system reconfigure") > ("pl" "pull") > ; ... > )) > (services > (emacs-daemon-service) > (dzen-service) > ; ... > )) > > or similar :) While I’m not a fan of Guix-specific aliases, I think it’s not a bad idea to use Guix for user configurations. I’m tired of having to keep track of a set of custom configuration files scattered all over the place, but I’m not sure how to approach this without going overboard. To stay on the topic of user services: I think they do have a place in Guix and could be defined with the same mechanisms that we have for system services. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net