Guest User

Untitled

a guest
Nov 9th, 2019
402
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; This is an operating system configuration template
  2. ;; for a "desktop" setup with GNOME and Xfce where the
  3. ;; root partition is encrypted with LUKS.
  4.  
  5. (use-modules (gnu) (gnu system nss))
  6. (use-service-modules desktop xorg)
  7. (use-package-modules certs gnome)
  8.  
  9. (operating-system
  10. (host-name "guixflashdrive")
  11. (timezone "America/Chicago")
  12. (locale "en_US.utf8")
  13.  
  14. ;; Choose US English keyboard layout. The "altgr-intl"
  15. ;; variant provides dead keys for accented characters.
  16. (keyboard-layout (keyboard-layout "us"))
  17.  
  18. ;; Use the UEFI variant of GRUB with the EFI System
  19. ;; Partition mounted on /boot/efi.
  20. (bootloader (bootloader-configuration
  21. (bootloader grub-efi-bootloader)
  22. (target "/boot/efi")
  23. (keyboard-layout keyboard-layout)))
  24.  
  25. (file-systems (append
  26. (list (file-system
  27. (device (file-system-label "my-root"))
  28. (mount-point "/")
  29. (type "ext4"))
  30. (file-system
  31. (device (uuid "1234-ABCD" 'fat))
  32. (mount-point "/boot/efi")
  33. (type "vfat")))
  34. %base-file-systems))
  35.  
  36. (users (cons (user-account
  37. (name "nathan")
  38. (group "users")
  39. (supplementary-groups '("wheel" "netdev"
  40. "audio" "video")))
  41. %base-user-accounts))
  42.  
  43. ;; This is where we specify system-wide packages.
  44. (packages (append (list
  45. ;; for HTTPS access
  46. nss-certs
  47. ;; for user mounts
  48. gvfs)
  49. %base-packages))
  50.  
  51. ;; Add GNOME and Xfce---we can choose at the log-in screen
  52. ;; by clicking the gear. Use the "desktop" services, which
  53. ;; include the X11 log-in service, networking with
  54. ;; NetworkManager, and more.
  55. (services (append (list (service gnome-desktop-service-type)
  56. (service xfce-desktop-service-type)
  57. (set-xorg-configuration
  58. (xorg-configuration
  59. (keyboard-layout keyboard-layout))))
  60. %desktop-services))
  61.  
  62. ;; Allow resolution of '.local' host names with mDNS.
  63. (name-service-switch %mdns-host-lookup-nss))
RAW Paste Data