projects/guix·blob python-team · refs

55 lines · 2.1 KiB

1;; -*- mode: scheme; -*-
2;; This is an operating system configuration template
3;; for a "bare bones" setup, with no X11 display server.
4
5(use-modules (gnu))
6(use-service-modules networking ssh)
7(use-package-modules screen ssh)
8
9(operating-system
10 (host-name "komputilo")
11 (timezone "Europe/Berlin")
12 (locale "en_US.utf8")
13
14 ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
15 ;; target hard disk, and "my-root" is the label of the target
16 ;; root file system.
17 (bootloader (bootloader-configuration
18 (bootloader grub-bootloader)
19 (targets '("/dev/sdX"))))
20 ;; It's fitting to support the equally bare bones ‘-nographic’
21 ;; QEMU option, which also nicely sidesteps forcing QWERTY.
22 (kernel-arguments (list "console=ttyS0,115200"))
23 (file-systems (cons (file-system
24 (device (file-system-label "my-root"))
25 (mount-point "/")
26 (type "ext4"))
27 %base-file-systems))
28
29 ;; This is where user accounts are specified. The "root"
30 ;; account is implicit, and is initially created with the
31 ;; empty password.
32 (users (cons (user-account
33 (name "alice")
34 (comment "Bob's sister")
35 (group "users")
36
37 ;; Adding the account to the "wheel" group
38 ;; makes it a sudoer. Adding it to "audio"
39 ;; and "video" allows the user to play sound
40 ;; and access the webcam.
41 (supplementary-groups '("wheel"
42 "audio" "video")))
43 %base-user-accounts))
44
45 ;; Globally-installed packages.
46 (packages (cons screen %base-packages))
47
48 ;; Add services to the baseline: a DHCP client and an SSH
49 ;; server. You may wish to add an NTP service here.
50 (services (append (list (service dhcpcd-service-type)
51 (service openssh-service-type
52 (openssh-configuration
53 (openssh openssh-sans-x)
54 (port-number 2222))))
55 %base-services)))