aboutsummaryrefslogtreecommitdiff
;; This is an operating system configuration template
;; for a "desktop" setup with Plasma.

(use-modules (gnu) (gnu system nss) (srfi srfi-1))
(use-service-modules desktop sddm xorg ssh)
(use-package-modules gnome ssh admin fonts)
(use-package-modules qt xorg tmux linux)

(operating-system
  (host-name "plasma")
  (timezone "Asia/Shanghai")
  (locale "en_US.utf8")

  ;; Assuming /dev/sdX is the target hard disk, and "my-root"
  ;; is the label of the target root file system.
  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)
               (targets (list "/dev/sdX"))))

  (file-systems (cons (file-system
                        (device "my-root")
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  (users (cons (user-account
                (name "plasma")
                (password (crypt "plasma" "$6$abc"))
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video")))
               %base-user-accounts))

  ;; This is where we specify system-wide packages.
  (packages (cons* neofetch
                   htop
                   tmux
                   xprop
                   strace
                   %base-packages))

  (services (cons*
             ;; for debug
             ;; (simple-service
             ;;  'add-qt-debug-env
             ;;  session-environment-service-type
             ;;  '(("QT_MESSAGE_PATTERN"
             ;;     . "[[%{time process} %{type}] %{appname}: %{category} %{function} - %{message}]")
             ;;    ("QT_DEBUG_PLUGINS" . "1")
             ;;    ("QML_IMPORT_TRACE" . "1")))
             (service openssh-service-type
                      (openssh-configuration
                       (openssh openssh-sans-x)
                       (port-number 2222)))
             (service plasma-desktop-service-type)
             (service sddm-service-type
                      (sddm-configuration
                       (theme "breeze")))

             ;; Remove GDM if it's among %DESKTOP-SERVICES; on other
             ;; architectures, %DESKTOP-SERVICES contains SDDM instead.
             (remove (lambda (service)
                       (memq (service-kind service)
                             (list gdm-service-type sddm-service-type)))
                     %desktop-services)))
  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))

;; Local Variables:
;; mode: scheme
;; End:
3106d7e5ba9ba3c5146b1b'>gnu: bison: Update to 3.5....* gnu/packages/bison.scm (bison): Update to 3.5. Efraim Flashner 2019-11-26gnu: bison: Update to 3.4.2....* gnu/packages/bison.scm (bison): Update to 3.4.2. Efraim Flashner 2019-09-30gnu: xyce: Use Bison 3.0....Xyce requires Bison 3.0 at the latest. * gnu/packages/bison.scm (bison-3.0): New variable. * gnu/packages/engineering.scm (xyce-serial)[native-inputs]: Use BISON-3.0 instead of BISON. Ludovic Courtès 2019-06-17gnu: bison: Disable parallel tests, too....* gnu/packages/bison.scm (bison)[arguments]: Add #:parallel-tests?. Marius Bakke 2019-06-16gnu: bison: Disable parallel build....Fixes <https://bugs.gnu.org/36238. Reported by Carl Dong <contact@carldong.me>. * gnu/packages/bison.scm (bison)[arguments]: New field. Marius Bakke 2019-05-25gnu: bison: Update to 3.4.1....* gnu/packages/bison.scm (bison): Update to 3.4.1. Marius Bakke 2019-02-07gnu: bison: Update to 3.3.2....* gnu/packages/bison.scm (bison): Update to 3.3.2. Marius Bakke 2019-01-07gnu: bison: Update to 3.2.4....* gnu/packages/bison.scm (bison): Update to 3.2.4. Efraim Flashner 2018-12-11gnu: bison: Update to 3.2.2....* gnu/packages/bison.scm (bison): Update to 3.2.2. Marius Bakke 2018-08-25gnu: Remove bison@2.7....* gnu/packages/bison.scm (bison-2.7): Remove variable. Marius Bakke 2018-06-12gnu: bison: Update to 3.0.5....* gnu/packages/bison.scm (bison): Update to 3.0.5. Tobias Geerinckx-Rice