aboutsummaryrefslogtreecommitdiff
path: root/gnu/system/examples/bare-bones.tmpl
blob: f7b8823d4f0918534b82ee2e063b6f73247a4382 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
;; 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 "komputilo")
  (timezone "Europe/Berlin")
  (locale "en_US.utf8")

  ;; 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 (cons tcpdump %base-packages))

  ;; Add services to the baseline: a DHCP client and
  ;; an SSH server.
  (services (cons* (dhcp-client-service)
                   (service openssh-service-type
                            (openssh-configuration
                              (port-number 2222)))
                   %base-services)))
>...Tobias Geerinckx-Rice 2021-11-28gnu: clustershell: Fetch sources from Git....Tobias Geerinckx-Rice 2021-11-17Merge branch 'master' into core-updates-frozenLudovic Courtès 2021-11-08gnu: packages: Remove last year's deprecations....Tobias Geerinckx-Rice 2021-10-12Merge remote-tracking branch 'origin/master' into core-updates-frozen.Mathieu Othacehe 2021-10-04Revert "gnu: openssh: Remove empty /var/empty."...Tobias Geerinckx-Rice 2021-10-04gnu: openssh: Remove empty /var/empty....Tobias Geerinckx-Rice 2021-10-04gnu: openssh: Update to 8.8p1 [security fixes]....Tobias Geerinckx-Rice 2021-09-17Merge branch 'master' into core-updates-frozen...Marius Bakke 2021-09-14gnu: python-asyncssh: Update to 2.7.1....Lars-Dominik Braun 2021-09-07Merge branch 'master' into core-updates-frozenLudovic Courtès 2021-09-03gnu: libssh: Update to 0.9.6 [fixes CVE-2021-3634]....Leo Famulari 2021-08-22gnu: openssh: Update to 8.7p1....Brice Waegeneire 2021-08-15Update copyright/name notices for Christine Lemmer-Webber....Christopher Lemmer Webber