From fe3dfcb05bef746bed60c8bab7dcb1923844515c Mon Sep 17 00:00:00 2001 From: James Richardson Date: Sat, 18 Feb 2017 10:45:55 -0500 Subject: [PATCH] initial bare-bones config --- machines/config.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 machines/config.scm diff --git a/machines/config.scm b/machines/config.scm new file mode 100644 index 0000000..8eba109 --- /dev/null +++ b/machines/config.scm @@ -0,0 +1,47 @@ +;; This is an operating system configuration template +;; for a "bare bones" setup, with no X11 display server. + +(use-modules (gnu)) +(use-service-modules networking ssh) +(use-package-modules admin) + +(operating-system + (host-name "media01") + (timezone "EST5EDT") + (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/sda"))) + (file-systems (cons (file-system + (device "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 "james") + (comment "James Richardson") + (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/james")) + %base-user-accounts)) + + ;; Globally-installed packages. + (packages (cons tcpdump %base-packages)) + + ;; Add services to the baseline: a DHCP client and + ;; an SSH server. + (services (cons* (dhcp-client-service) + (lsh-service #:port-number 2222) + %base-services))) -- 2.11.4.GIT