asus-c201.tmpl 2.2 KB

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