[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guix shepherd user services
From: |
Tobias Geerinckx-Rice |
Subject: |
Re: Guix shepherd user services |
Date: |
Mon, 29 Apr 2019 22:10:53 +0200 |
Tanguy,
Tanguy Le Carrour wrote:
Hello Guix!
I've just read this thread [1] on the archive and I think it
would be a
great feature! Any update on the topic?!
[1]:
https://lists.gnu.org/archive/html/guix-devel/2019-02/msg00132.html
I would love to have some services started when I log in (tor,
transmission-daemon, mpd, gpg-agent… you name them!) without
having to
rely on the root user and system configuration.
Note that this is already possible if you want it:
~ λ cat /home/nckx/.config/shepherd/init.scm
(load "services.scm")
(register-services emacs gpg-agent ibus-daemon jackd)
(action 'shepherd 'daemonize) ; send shepherd into background
(for-each start (list emacs)) ; services to start automatically
~ λ cat /home/nckx/.config/shepherd/services.scm
(define emacs
(make <service>
#:provides '(emacs)
#:requires '()
#:start (make-system-constructor "emacs --daemon")
#:stop (make-system-destructor "emacsclient --eval
\"(kill-emacs)\"")))
;; ...much more snipped...
~ λ grep shepherd /home/nckx/.xsession
shepherd # user service manager
The discussion is about how to add it (and user stuff in general)
to Guix, which is a big wriggly bag of tasty worms.
Kind regards,
T G-R
signature.asc
Description: PGP signature