spacepaste

  1.  
  2. ;; This is an operating system configuration template
  3. ;; for a "bare bones" setup, with no X11 display server.
  4. (use-modules
  5. (gnu)
  6. (gnu services avahi)
  7. (gnu services base)
  8. (gnu services dbus)
  9. (gnu services desktop)
  10. (gnu services xorg)
  11. (gnu system locale)
  12. (gnu system nss))
  13. (use-service-modules networking ssh)
  14. (use-package-modules certs emacs gnome shells screen ssh tmux xfce)
  15. (operating-system
  16. (host-name "guix")
  17. (timezone "America/Chicago")
  18. (locale "en_US.utf8")
  19. ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
  20. ;; target hard disk, and "my-root" is the label of the target
  21. ;; root file system.
  22. (bootloader (bootloader-configuration
  23. (bootloader grub-bootloader)
  24. (target "/dev/sda")))
  25. (file-systems (cons (file-system
  26. (device (file-system-label "my-root"))
  27. (mount-point "/")
  28. (type "ext4"))
  29. %base-file-systems))
  30. ;; This is where user accounts are specified. The "root"
  31. ;; account is implicit, and is initially created with the
  32. ;; empty password.
  33. (users (cons (user-account
  34. (name "brown")
  35. (comment "Eric Brown")
  36. (group "users")
  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. (home-directory "/home/brown"))
  44. %base-user-accounts))
  45. ;; Globally-installed packages.
  46. (packages (cons*
  47. nss-certs
  48. gvfs
  49. screen
  50. openssh %base-packages))
  51. ;; Add services to the baseline: a DHCP client and
  52. ;; an SSH server.
  53. (services (cons*
  54. ;; (gnome-desktop-service)
  55. (xfce-desktop-service)
  56. (dhcp-client-service)
  57. (service openssh-service-type
  58. (openssh-configuration
  59. (x11-forwarding? #t)
  60. (port-number 2222)))
  61. %base-services)))
  62.