Paste number 349410: config.scm

Paste number 349410: config.scm
Pasted by: espectalll
When:3 years, 1 month ago
Share:Tweet this! | http://paste.lisp.org/+7HLU
Channel:None
Paste contents:
Raw Source | XML | Display As
;;; This is an operating system configuration template for a "bare-bones" setup,
;;; suitable for booting in a virtualized environment, including virtual private
;;; servers (VPS).

(use-modules (gnu) (gnu system nss))
(use-service-modules networking desktop)
(use-package-modules admin certs gnome)

(define vm-image-motd (plain-file "motd"
  "Hey, Xerz! Welcome to your GNU system!\n"))

(operating-system
  (host-name "gnu")
  (timezone "Europe/Madrid")
  (locale "es_ES.utf8")

  (bootloader (grub-configuration (device "/dev/sda")
                                  (terminal-outputs '(console))))
  (file-systems (cons (file-system
                        (device "my-root")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  (users (cons (user-account
                (name "xerz")
                (comment "Francisco Gómez")
                (group "users")
                (supplementary-groups '("wheel" "audio" "video"))
                (home-directory "/home/xerz"))
           %base-user-accounts))

  ;; Globally-installed packages.
  (packages (cons* nss-certs
                   gvfs
                   %base-packages))

  (services (cons*
              (console-keymap-service "es")
              (gnome-desktop-service)
              (ntp-service)
              (modify-services %desktop-services
                (login-service-type config =>
                                  (login-configuration
                                    (inherit config)
                                    (motd vm-image-motd))))))

  (name-service-switch %mdns-host-lookup-nss))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.