aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/sysctl.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/services/sysctl.scm')
0 files changed, 0 insertions, 0 deletions
(system-service (type 'desktop) fields ...))))) (list ;; This is the list of desktop environments supported as services. (desktop-environment (name "GNOME") (snippet '((service gnome-desktop-service-type)))) (desktop-environment (name "Xfce") (snippet '((service xfce-desktop-service-type)))) (desktop-environment (name "MATE") (snippet '((service mate-desktop-service-type)))) (desktop-environment (name "Enlightenment") (snippet '((service enlightenment-desktop-service-type)))) (desktop-environment (name "Openbox") (packages '((specification->package "openbox")))) (desktop-environment (name "awesome") (packages '((specification->package "awesome")))) (desktop-environment (name "i3") (packages (map (lambda (package) `(specification->package ,package)) '("i3-wm" "i3status" "dmenu" "st")))) (desktop-environment (name "ratpoison") (packages '((specification->package "ratpoison") (specification->package "xterm")))) (desktop-environment (name "Emacs EXWM") (packages '((specification->package "emacs") (specification->package "emacs-exwm") (specification->package "emacs-desktop-environment")))) ;; Networking. (system-service (name (G_ "OpenSSH secure shell daemon (sshd)")) (type 'networking) (snippet `(,(vertical-space 1) ,(comment (G_ "\ ;; To configure OpenSSH, pass an 'openssh-configuration' ;; record as a second argument to 'service' below.\n")) (service openssh-service-type)))) (system-service (name (G_ "Tor anonymous network router")) (type 'networking) (snippet '((service tor-service-type)))) ;; Miscellaneous system administration services. (system-service (name (G_ "Network time service (NTP), to set the clock automatically")) (type 'administration) (recommended? #t) (snippet '((service ntp-service-type)))) (system-service (name (G_ "GPM mouse daemon, to use the mouse on the console")) (type 'administration) (snippet '((service gpm-service-type)))) ;; Network connectivity management. (system-service (name (G_ "NetworkManager network connection manager")) (type 'network-management) (snippet '((service network-manager-service-type) (service wpa-supplicant-service-type)))) (system-service (name (G_ "Connman network connection manager")) (type 'network-management) (snippet '((service connman-service-type) (service wpa-supplicant-service-type)))) (system-service (name (G_ "DHCP client (dynamic IP address assignment)")) (type 'network-management) (snippet '((service dhcp-client-service-type)))) ;; Dealing with documents. (system-service (name (G_ "CUPS printing system (no Web interface by default)")) (type 'document) (snippet '((service cups-service-type))))))) (define (desktop-system-service? service) "Return true if SERVICE is a desktop environment service." (eq? 'desktop (system-service-type service))) (define (system-services->configuration services) "Return the configuration field for SERVICES." (let* ((snippets (append-map system-service-snippet services)) (packages (append-map system-service-packages services)) (desktop? (find desktop-system-service? services)) (base (if desktop? '%desktop-services '%base-services)) (native-console-font (match (getenv "LANGUAGE") ((or "be" "bg" "el" "eo" "kk" "ky" "mk" "mn" "ru" "sr" "tg" "uk") "LatGrkCyr-8x16") (_ #f))) (services (if native-console-font `(modify-services ,base (console-font-service-type config => (map (lambda (tty) (cons (car tty) ,native-console-font)) config))) base)) (service-heading (list (vertical-space 1) (comment (G_ "\ ;; Below is the list of system services. To search for available ;; services, run 'guix system search KEYWORD' in a terminal.\n")))) (package-heading (list (vertical-space 1) (comment (G_ "\ ;; Packages installed system-wide. Users can also install packages ;; under their own account: use 'guix search KEYWORD' to search ;; for packages and 'guix install PACKAGE' to install a package.\n"))))) (if (null? snippets) `(,@(if (null? packages) '() `(,@package-heading (packages (append (list ,@packages) %base-packages)))) ,@service-heading (services ,services)) `(,@(if (null? packages) '() `(,@package-heading (packages (append (list ,@packages) %base-packages)))) ,@service-heading (services (append (list ,@snippets ,@(if desktop? ;; XXX: Assume 'keyboard-layout' is in ;; scope. `((set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout)))) '())) ,(vertical-space 1) ,(comment (G_ "\ ;; This is the default list of services we ;; are appending to.\n")) ,services))))))