services: Add wicd service.
* gnu/services/networking.scm (wicd-service): New procedure. * doc/guix.texi (Networking Services): Document it.
This commit is contained in:
parent
10b60c0430
commit
b7d0c494f4
2 changed files with 32 additions and 1 deletions
|
|
@ -4453,6 +4453,12 @@ Return a service that starts @var{interface} with address @var{ip}. If
|
||||||
gateway.
|
gateway.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
@cindex wicd
|
||||||
|
@deffn {Monadic Procedure} wicd-service [#:wicd @var{wicd}]
|
||||||
|
Return a service that runs @url{https://launchpad.net/wicd,Wicd}, a
|
||||||
|
network manager that aims to simplify wired and wireless networking.
|
||||||
|
@end deffn
|
||||||
|
|
||||||
@deffn {Monadic Procedure} ntp-service [#:ntp @var{ntp}] @
|
@deffn {Monadic Procedure} ntp-service [#:ntp @var{ntp}] @
|
||||||
[#:name-service @var{%ntp-servers}]
|
[#:name-service @var{%ntp-servers}]
|
||||||
Return a service that runs the daemon from @var{ntp}, the
|
Return a service that runs the daemon from @var{ntp}, the
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
||||||
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
|
@ -24,6 +25,7 @@
|
||||||
#:use-module (gnu packages tor)
|
#:use-module (gnu packages tor)
|
||||||
#:use-module (gnu packages messaging)
|
#:use-module (gnu packages messaging)
|
||||||
#:use-module (gnu packages ntp)
|
#:use-module (gnu packages ntp)
|
||||||
|
#:use-module (gnu packages wicd)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix store)
|
#:use-module (guix store)
|
||||||
#:use-module (guix monads)
|
#:use-module (guix monads)
|
||||||
|
|
@ -34,7 +36,8 @@
|
||||||
%ntp-servers
|
%ntp-servers
|
||||||
ntp-service
|
ntp-service
|
||||||
tor-service
|
tor-service
|
||||||
bitlbee-service))
|
bitlbee-service
|
||||||
|
wicd-service))
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;;
|
;;;
|
||||||
|
|
@ -297,4 +300,26 @@ configuration file."
|
||||||
(shell #~(string-append #$shadow
|
(shell #~(string-append #$shadow
|
||||||
"/sbin/nologin")))))))))
|
"/sbin/nologin")))))))))
|
||||||
|
|
||||||
|
(define* (wicd-service #:key (wicd wicd))
|
||||||
|
"Return a service that runs @url{https://launchpad.net/wicd,Wicd}, a network
|
||||||
|
manager that aims to simplify wired and wireless networking."
|
||||||
|
(with-monad %store-monad
|
||||||
|
(return
|
||||||
|
(service
|
||||||
|
(documentation "Run the Wicd network manager.")
|
||||||
|
(provision '(networking))
|
||||||
|
(requirement '(user-processes dbus-system loopback))
|
||||||
|
(start #~(make-forkexec-constructor
|
||||||
|
(list (string-append #$wicd "/sbin/wicd")
|
||||||
|
"--no-daemon")))
|
||||||
|
(stop #~(make-kill-destructor))
|
||||||
|
(activate
|
||||||
|
#~(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(mkdir-p "/etc/wicd")
|
||||||
|
(let ((file-name "/etc/wicd/dhclient.conf.template.default"))
|
||||||
|
(unless (file-exists? file-name)
|
||||||
|
(copy-file (string-append #$wicd file-name)
|
||||||
|
file-name)))))))))
|
||||||
|
|
||||||
;;; networking.scm ends here
|
;;; networking.scm ends here
|
||||||
|
|
|
||||||
Reference in a new issue