2015-05-09 21:16:11 +00:00
|
|
|
;; This is an operating system configuration template
|
|
|
|
;; for a "desktop" setup with X11.
|
|
|
|
|
|
|
|
(use-modules (gnu) (gnu system nss))
|
|
|
|
(use-service-modules desktop)
|
2015-11-02 21:13:01 +00:00
|
|
|
(use-package-modules xfce ratpoison certs)
|
2015-05-09 21:16:11 +00:00
|
|
|
|
|
|
|
(operating-system
|
|
|
|
(host-name "antelope")
|
|
|
|
(timezone "Europe/Paris")
|
|
|
|
(locale "en_US.UTF-8")
|
|
|
|
|
2015-12-21 04:09:22 +00:00
|
|
|
;; Assuming /dev/sdX is the target hard disk, and "my-root"
|
|
|
|
;; is the label of the target root file system.
|
2015-05-09 21:16:11 +00:00
|
|
|
(bootloader (grub-configuration (device "/dev/sdX")))
|
|
|
|
(file-systems (cons (file-system
|
2015-12-21 04:09:22 +00:00
|
|
|
(device "my-root")
|
2015-11-04 09:27:12 +00:00
|
|
|
(title 'label)
|
2015-05-09 21:16:11 +00:00
|
|
|
(mount-point "/")
|
|
|
|
(type "ext4"))
|
|
|
|
%base-file-systems))
|
|
|
|
|
2015-05-25 14:54:05 +00:00
|
|
|
(users (cons (user-account
|
2015-05-09 21:16:11 +00:00
|
|
|
(name "bob")
|
|
|
|
(comment "Alice's brother")
|
|
|
|
(group "users")
|
2015-05-12 02:39:26 +00:00
|
|
|
(supplementary-groups '("wheel" "netdev"
|
2015-05-09 21:16:11 +00:00
|
|
|
"audio" "video"))
|
2015-05-25 14:54:05 +00:00
|
|
|
(home-directory "/home/bob"))
|
|
|
|
%base-user-accounts))
|
2015-05-09 21:16:11 +00:00
|
|
|
|
|
|
|
;; Add Xfce and Ratpoison; that allows us to choose
|
|
|
|
;; sessions using either of these at the log-in screen.
|
|
|
|
(packages (cons* xfce ratpoison ;desktop environments
|
2015-05-11 20:59:29 +00:00
|
|
|
nss-certs ;for HTTPS access
|
2015-05-09 21:16:11 +00:00
|
|
|
%base-packages))
|
|
|
|
|
|
|
|
;; Use the "desktop" services, which include the X11
|
|
|
|
;; log-in service, networking with Wicd, and more.
|
|
|
|
(services %desktop-services)
|
|
|
|
|
|
|
|
;; Allow resolution of '.local' host names with mDNS.
|
|
|
|
(name-service-switch %mdns-host-lookup-nss))
|