Paste number 332114: config.scm

Paste number 332114: config.scm
Pasted by: iyzsong
When:3 years, 6 months ago
Share:Tweet this! | http://paste.lisp.org/+749E
Channel:None
Paste contents:
Raw Source | XML | Display As
;; -*- mode: scheme -*-

(use-modules (gnu))
(use-service-modules networking ssh version-control)
(use-package-modules admin)

(operating-system
  (host-name "komputilo")
  (timezone "Europe/Berlin")
  (locale "en_US.UTF-8")

  ;; Assuming /dev/sdX is the target hard disk, and "my-root" is
  ;; the label of the target root file system.
  (bootloader (grub-configuration (device "/dev/sdX")))
  (file-systems (cons (file-system
                        (device "my-root")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  ;; This is where user accounts are specified.  The "root"
  ;; account is implicit, and is initially created with the
  ;; empty password.
  (users (cons (user-account
                (name "alice")
                (comment "Bob's sister")
                (group "users")

                ;; Adding the account to the "wheel" group
                ;; makes it a sudoer.  Adding it to "audio"
                ;; and "video" allows the user to play sound
                ;; and access the webcam.
                (supplementary-groups '("wheel"
                                        "audio" "video"))
                (home-directory "/home/alice"))
               %base-user-accounts))

  ;; Globally-installed packages.
  (packages %base-packages)

  (services (cons* (dhcp-client-service)
		   (git-daemon-service
		    #:config
		    (git-daemon-configuration
		     (export-all? #t)
		     (user-path "")))
                   (lsh-service #:port-number 2222)
                   %base-services)))

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.