guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining user services in Guix.


From: Mekeor Melire
Subject: Re: Defining user services in Guix.
Date: Tue, 25 Apr 2017 02:02:08 +0200
User-agent: mu4e 0.9.18; emacs 25.1.1

Mathieu Othacehe <address@hidden> 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 :)

--
mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868



reply via email to

[Prev in Thread] Current Thread [Next in Thread]