1 ;; This is an operating system configuration template
2 ;; for a "desktop" setup without full-blown desktop
7 (srfi srfi-1) ; for remove
8 (gnu services base) ; for syslog service type
9 (james linux-nonfree)) ; for blobs
10 (use-service-modules ssh desktop cups admin mcron)
11 (use-package-modules certs
16 (define garbage-collector-job
22 (timezone "US/Eastern")
23 (locale "en_US.UTF-8")
25 ;; Assuming /dev/sdX is the target hard disk, and "my-root"
26 ;; is the label of the target root file system.
27 (bootloader (grub-configuration (device "/dev/sda")))
29 (file-systems (cons (file-system
35 (swap-devices '("/dev/sda3"))
36 (users (cons (user-account
38 (comment "James Richardson")
40 (supplementary-groups '("wheel" "netdev"
41 "audio" "video" "kvm"))
42 (home-directory "/home/james"))
44 (kernel linux-nonfree)
45 (firmware (cons* iwlwifi-firmware-non-free %base-firmware))
46 ;; Add a bunch of window managers; we can choose one at
47 ;; the log-in screen with F1.
48 (packages (cons* (list sbcl-stumpwm "bin") ;stumpwm
49 nss-certs ;for HTTPS access
60 ;; Use the "desktop" services, which include the X11
61 ;; log-in service, networking with Wicd, and more.
62 (services (cons* (service openssh-service-type (openssh-configuration))
63 (service cups-service-type (cups-configuration))
64 (service syslog-service-type (syslog-configuration
65 (config-file (plain-file "syslog.conf" "
66 *.debug /var/log/debug
68 (mcron-service (list garbage-collector-job))
69 ;(service rottlog-service-type (roittlog-configuration))
70 (remove (lambda (service)
71 (or (eq? (service-kind service)
72 syslog-service-type)))
75 ;; Allow resolution of '.local' host names with mDNS.
76 (name-service-switch %mdns-host-lookup-nss))