Dmitry Nikolaev (2016-05-24 23:42 +0300) wrote:

[...]
> Second one gives
>
> guix system: error: service 'xorg-server' provided more than once

As I wrote in the previous message, I don't reproduce this.  Both
configs didn't give me any error, but when I added another (the second)
slim-service, then this error appears.  Are absolutely sure you specify
the right config for "guix system" command?

Can you try the attached config?  It is the same as yours, except I
commented non-free stuff from your modules, because I don't have them.
I ran the following command:

  guix system build --no-substitutes --dry-run --no-grafts 
.../attached-config.scm

and got no error (only a huge output of what would be built).  Is it
successful for you?

(use-modules (gnu)
             (gnu packages admin)
             (gnu packages fonts)
             (gnu packages gl)
             (gnu packages gnome)
             (gnu packages gnuzilla)
             (gnu packages guile)
             (gnu packages java)
             (gnu packages linux)
             (gnu packages ntp)
             (gnu packages pulseaudio)
             (gnu packages ruby)
             (gnu packages screen)
             (gnu packages slim)
             (gnu packages suckless)
             (gnu packages version-control)
             (gnu packages wget)
             (gnu packages wicd)
             (gnu packages wm)
             (gnu packages xdisorg)
             (gnu packages xorg)
             (gnu packages zip)
             (gnu services)
             (gnu services avahi)
             (gnu services dbus)
             (gnu services desktop)
             (gnu services xorg)
             (gnu system nss)
             (guix gexp)
             (guix monads)
             (guix store)
             (srfi srfi-1)
             ;; (linux-nonfree)
             ;; (xorg-ati)
             ;; (font-hack)
             )
;; (use-service-modules xorg ati avahi dbus desktop networking ssh)
;; (use-package-modules admin certs slim xorg)
(use-service-modules avahi dbus networking ssh)
(use-package-modules admin certs ntp)

(define libinput.conf "
# Use the libinput driver for all event devices
Section \"InputClass\"
    Identifier \"libinput keyboard catchall\"
    MatchIsKeyboard \"on\"
    MatchDevicePath \"/dev/input/event*\"
    Driver \"libinput\"
    Option \"XkbLayout\" \"us,ru\"
    Option \"XkbOptions\" \"grp_led:scroll,grp:caps_toggle,grp:lwin_compose\"
EndSection
")

(operating-system
  ;; (kernel linux-nonfree)
  ;; (firmware (cons* radeon-RS780-firmware-non-free
  ;;                  RTL8188CE-firmware-non-free %base-firmware))
  (host-name "camelot")
  (timezone "Europe/Moscow")
  (locale "en_US.UTF-8")

  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems (cons (file-system
                        (device "root")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  (users (cons (user-account
                (name "camel")
                (comment "Camel")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/camel"))
               %base-user-accounts))

  ;; This is where we specify system-wide packages.
  (packages (cons*
             evince
             font-dejavu
             ;; font-hack
             font-inconsolata
             font-liberation
             font-terminus
             font-ubuntu
             git
             ;; guile
             htop
             i3-wm
             icecat
             icedtea
             lm-sensors
             mesa
             mesa-utils
             nss-certs          ;for HTTPS access
             screen
             slim
             pavucontrol
             ;; perf-nonfree
             ruby
             rxvt-unicode
             tcpdump
             wget
             wicd
             wpa-supplicant
             xf86-input-evdev
             xf86-video-ati
             xf86-video-fbdev
             xf86-video-modesetting
             xorg-server
             xsensors
             unzip
             %base-packages))

  (services
   (cons*
    (lsh-service #:port-number 2222)
    (gnome-desktop-service)
    (xfce-desktop-service)
    (console-keymap-service "ru")
    (slim-service
     #:allow-empty-passwords? #f #:auto-login? #f
     #:startx (xorg-start-command
               #:configuration-file
               (xorg-configuration-file
                #:extra-config (list libinput.conf)
                #:drivers '("radeon" "vesa")
                #:resolutions
                '((1366 768) (1024 768)))))

    ;; (screen-locker-service slock)
    ;; (screen-locker-service xlockmore "xlock")
    ;; ;; The D-Bus clique.
    ;; (avahi-service)
    ;; (wicd-service)
    ;; (udisks-service)
    ;; (upower-service)
    ;; (colord-service)
    ;; (geoclue-service)
    ;; (polkit-service)
    ;; (elogind-service)
    ;; (dbus-service)
    ;; (ntp-service)
    ;; %base-services))

    (remove (lambda (service)
              (eq? (service-kind service) slim-service-type))
            %desktop-services)))
  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))

Reply via email to