asus-c201.tmpl 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ;; -*- mode: scheme; -*-
  2. ;; This is an operating system configuration template
  3. ;; for a "bare bones" setup for an ASUS C201PA.
  4. (use-modules (gnu) (gnu bootloader depthcharge))
  5. (use-service-modules networking ssh)
  6. (use-package-modules linux screen)
  7. (operating-system
  8. (host-name "komputilo")
  9. (timezone "Europe/Berlin")
  10. (locale "en_US.utf8")
  11. ;; Assuming /dev/mmcblk0p1 is the kernel partition, and
  12. ;; "my-root" is the label of the target root file system.
  13. (bootloader (bootloader-configuration
  14. (bootloader depthcharge-bootloader)
  15. (targets '("/dev/mmcblk0p1"))))
  16. ;; The ASUS C201PA requires a very particular kernel to boot,
  17. ;; as well as the following arguments.
  18. (kernel linux-libre-arm-generic)
  19. (kernel-arguments '("console=tty1"))
  20. ;; We do not need any special modules for initrd, and the
  21. ;; PrawnOS kernel does not include many of the normal ones.
  22. (initrd-modules '())
  23. (file-systems (cons (file-system
  24. (device (file-system-label "my-root"))
  25. (mount-point "/")
  26. (type "ext4"))
  27. %base-file-systems))
  28. ;; This is where user accounts are specified. The "root"
  29. ;; account is implicit, and is initially created with the
  30. ;; empty password.
  31. (users (cons (user-account
  32. (name "alice")
  33. (comment "Bob's sister")
  34. (group "users")
  35. ;; Adding the account to the "wheel" group
  36. ;; makes it a sudoer. Adding it to "audio"
  37. ;; and "video" allows the user to play sound
  38. ;; and access the webcam.
  39. (supplementary-groups '("wheel"
  40. "audio" "video"))
  41. (home-directory "/home/alice"))
  42. %base-user-accounts))
  43. ;; Globally-installed packages.
  44. (packages (cons screen %base-packages))
  45. ;; Add services to the baseline: a DHCP client and
  46. ;; an SSH server.
  47. (services (append (list (service dhcp-client-service-type)
  48. (service openssh-service-type
  49. (openssh-configuration
  50. (port-number 2222))))
  51. %base-services)))