spacepaste

  1.  
  2. $ cat config.scm; echo ""; echo "HERE ENDS CONFIG.SCM";echo ""; make
  3. (add-to-load-path "/home/thomas/guixsd/modules/tms")
  4. (use-modules
  5. (gnu)
  6. (gnu system)
  7. (gnu system nss)
  8. (gnu packages libusb)
  9. (guix monads)
  10. (guix store)
  11. (ice-9 rdelim)
  12. (srfi srfi-1)
  13. (linux-nonfree)
  14. ; (wkhtmltopdf)
  15. ; (etc-symlinks)
  16. ; (fpm2)
  17. )
  18. (use-service-modules
  19. desktop base xorg ssh avahi dbus xorg networking cups)
  20. (use-package-modules
  21. avahi xorg certs wm zip code wget admin emacs tmux haskell
  22. ssh linux disk file gnuzilla version-control maths guile crypto gnupg
  23. password-utils pdf mail rsync suckless gnome video xdisorg
  24. terminals ssh music conkeror image-viewers package-management web-browsers
  25. tex tor libreoffice readline scribus adns games fontutils gnunet
  26. networking connman lisp certs cryptsetup fonts python photo qemu
  27. bittorrent password-utils engineering graphviz music mpd shells compression
  28. gnome enlightenment dns)
  29. (define hp-laptop-monitor-settings
  30. (call-with-input-file "/home/thomas/guixsd/dotfiles/etc/X11/xorg.conf.d/90-monitor.conf" read-string))
  31. (define tms-desktop-services
  32. (remove (lambda (service)
  33. (eq? (service-kind service) wicd-service-type))
  34. %desktop-services))
  35. (operating-system
  36. (host-name "hitpoints")
  37. (timezone "Europe/Oslo")
  38. (locale "en_US.UTF-8")
  39. (kernel linux-nonfree)
  40. (firmware (cons* intel-iwlwifi-firmware-non-free %base-firmware))
  41. (bootloader (grub-configuration (device "/dev/disk/by-id/ata-INTEL_SSDSC2CT240A4_CVKI246301DN240DGN")))
  42. (swap-devices '("/dev/disk/by-label/swap"))
  43. (file-systems (cons* (file-system
  44. (device "rootfs")
  45. (title 'label)
  46. (mount-point "/")
  47. (type "ext4"))
  48. (file-system
  49. (device "nixos-root")
  50. (title 'label)
  51. (mount-point "/home/thomas/disk")
  52. (type "ext4")
  53. (create-mount-point? #t))
  54. %base-file-systems))
  55. (issue "Mercury.\n")
  56. (groups (cons (user-group (name "nixbld")) %base-groups))
  57. (users (list (user-account
  58. (name "thomas")
  59. (comment "This should be interesting...")
  60. (group "users")
  61. (supplementary-groups '("wheel" "netdev" "audio" "video"
  62. "lp" "tor" "lpadmin" "avahi"
  63. "users" "kvm" "nixbld"))
  64. (home-directory "/home/thomas"))))
  65. ;;; Maybe use or adapt alezost-guile al/places.scm?
  66. ;;; Add visudo check into sudoers-file PROC - patch into GuixSD?
  67. (sudoers-file (local-file "/home/thomas/guixsd/dotfiles/etc/sudoers"))
  68. (hosts-file (local-file "/home/thomas/guixsd/dotfiles/etc/hosts"))
  69. (packages
  70. (cons*
  71. i3-wm i3status hicolor-icon-theme ;desktop environment
  72. ;useful tools
  73. avahi zip unzip tar tmux htop tree mosh unrar
  74. the-silver-searcher psmisc wget file strace
  75. inotify-tools wgetpaste rsync dmenu openssh lsh
  76. feh stow mcelog readline libcap wcalc graphviz xdotool
  77. ;; gvfs ; for automounting as user, check gvfsd as a service before
  78. ;; enabling
  79. ; X
  80. xbindkeys xterm xmodmap setxkbmap xclip xkill xbacklight
  81. xorg-server xf86-input-evdev xf86-video-fbdev xf86-video-intel
  82. xf86-input-synaptics xev xdpyinfo xrdb xrandr xfontsel
  83. ; font
  84. fontconfig font-inconsolata font-google-noto
  85. ;;font-google-material-design-icons
  86. font-gnu-unifont
  87. ; laptop specific
  88. acpi freefall
  89. ; dev
  90. git gnu-make python-2 python-3 binutils
  91. fritzing librecad guile-lib jupyter python-ipython
  92. ;;openscad?
  93. ; virtualization
  94. virt-manager
  95. ; misc tools
  96. units gnuplot
  97. ; media video audio music images
  98. mps-youtube mpv perl-image-exiftool ;;alsa-utils
  99. ncmpcpp mpd
  100. rage ;; test
  101. ; terminals and emulators
  102. st termite xonsh
  103. ; Networking, crypto & security
  104. tomb
  105. gnupg pwgen tor torsocks nmap adns iodine gnunet
  106. gnunet-gtk connman transmission password-store bind
  107. onionshare
  108. ;for HTTPS access
  109. nss-certs
  110. ; web browser
  111. icecat conkeror dillo
  112. ; email
  113. claws-mail
  114. ; document conversion and office
  115. ghc-pandoc libreoffice texlive
  116. ;;wkhtmltopdf scribus
  117. ; emacs
  118. emacs emacs-guix emacs-magit-popup emacs-smart-mode-line
  119. emacs-rainbow-delimiters emacs-rainbow-identifiers
  120. emacs-scheme-complete emacs-neotree emacs-ag flycheck
  121. emacs-undo-tree emacs-fill-column-indicator
  122. emacs-scheme-complete emacs-pdf-tools emacs-solarized-theme
  123. geiser guile-2.0 paredit
  124. ; pdf
  125. zathura zathura-cb zathura-djvu zathura-pdf-poppler
  126. zathura-ps qpdf
  127. evince lekha mupdf ;; TEST!
  128. ; Games
  129. hyperrogue minetest laby manaplus angband mars warzone2100
  130. kobodeluxe mrrescue megaglest kiki
  131. %base-packages))
  132. (services
  133. (cons*
  134. (console-keymap-service "us")
  135. (service cups-service-type
  136. (cups-configuration
  137. (web-interface? #t)
  138. (browsing? #t)
  139. (default-paper-size "a4")))
  140. (service connman-service-type
  141. (connman-configuration
  142. (disable-vpn? #f)))
  143. (service wpa-supplicant-service-type wpa-supplicant)
  144. (tor-service (local-file "/home/thomas/guixsd/dotfiles/etc/tor/torrc"))
  145. (modify-services tms-desktop-services
  146. (dbus-service config =>
  147. #:services (list connman
  148. avahi))
  149. (slim-service-type config =>
  150. (slim-configuration
  151. (inherit config)
  152. (startx (xorg-start-command
  153. #:configuration-file
  154. (xorg-configuration-file
  155. #:extra-config
  156. (list hp-laptop-monitor-settings))))))
  157. (guix-service-type config =>
  158. (guix-configuration
  159. (inherit config)
  160. (extra-options '("--max-jobs=2" "--cores=2")))))
  161. )) ; end services
  162. ;; Allow resolution of '.local' host names with mDNS.
  163. (name-service-switch %mdns-host-lookup-nss)
  164. )
  165. HERE ENDS CONFIG.SCM
  166. sudo cp ./config.scm "/etc/config.scm"
  167. sudo cp ./machines.scm "/etc/guix/machines.scm"
  168. sudo guix system reconfigure "/etc/config.scm"
  169. Backtrace:
  170. In srfi/srfi-1.scm:
  171. 592:29 19 (map1 (#<package mpd@0.20.6 gnu/packages/mpd.scm:76 …> …))
  172. 592:29 18 (map1 (#<package rage@0.2.1 gnu/packages/enlightenme…> …))
  173. 592:29 17 (map1 (#<package st@0.7 gnu/packages/suckless.scm:22…> …))
  174. 592:29 16 (map1 (#<package termite@12 gnu/packages/terminals.s…> …))
  175. 592:29 15 (map1 (#<package xonsh@0.5.9 gnu/packages/shells.scm…> …))
  176. 592:29 14 (map1 (#<package tomb@2.3 gnu/packages/crypto.scm:31…> …))
  177. 592:29 13 (map1 (#<package gnupg@2.1.21 gnu/packages/gnupg.scm…> …))
  178. 592:29 12 (map1 (#<package pwgen@2.07 gnu/packages/password-ut…> …))
  179. 592:29 11 (map1 (#<package tor@0.3.0.7 gnu/packages/tor.scm:44…> …))
  180. 592:29 10 (map1 (#<package torsocks@2.2.0 gnu/packages/tor.scm…> …))
  181. 592:29 9 (map1 (#<package nmap@7.40 gnu/packages/admin.scm:15…> …))
  182. 592:29 8 (map1 (#<package adns@1.5.1 gnu/packages/adns.scm:28…> …))
  183. 592:29 7 (map1 (#<package iodine@0.7.0 gnu/packages/networkin…> …))
  184. 592:29 6 (map1 (#<package gnunet@0.10.1 gnu/packages/gnunet.s…> …))
  185. 592:29 5 (map1 (#<package gnunet-gtk@0.10.1 gnu/packages/gnun…> …))
  186. 592:29 4 (map1 (#<package connman@1.34 gnu/packages/connman.s…> …))
  187. 592:29 3 (map1 (#<package transmission@2.92 gnu/packages/bitt…> …))
  188. 592:29 2 (map1 (#<package password-store@1.7.1 gnu/packages/p…> …))
  189. 592:17 1 (map1 (#<procedure bind (_ _ #:optional _ . _)> #<pa…> …))
  190. In guix/profiles.scm:
  191. 199:8 0 (_ _)
  192. guix/profiles.scm:199:8: guix/profiles.scm:199:8: Throw to key `match-error' with args `("match" "no matching pattern" #<procedure bind (_ _ #:optional _ . _)>)'.
  193. make: *** [Makefile:14: reconf] Error 1
  194.