unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Dmitry Nikolaev <cameltheman@gmail.com>
To: Alex Kost <alezost@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Customize %desktop-services.
Date: Tue, 24 May 2016 23:42:16 +0300	[thread overview]
Message-ID: <CAH3JXcGGwEswrsdBU7B0aewxZqo=wczQzLfWYqFGEPw_Hppj6Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 10307 bytes --]

>
> Could you paste your whole config?
>

Here you are. This one works:

(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))

Second one gives

guix system: error: service 'xorg-server' provided more than once

---

(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))


Here is diff of two:

135,151c135,152
<     (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)))
---
>     ;; (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)))

Thanks in advance.

Dmitry

[-- Attachment #2: Type: text/html, Size: 15236 bytes --]

             reply	other threads:[~2016-05-24 20:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24 20:42 Dmitry Nikolaev [this message]
2016-05-25  8:20 ` Customize %desktop-services Alex Kost
  -- strict thread matches above, loose matches on Subject: below --
2016-06-01 13:14 Dmitry Nikolaev
2016-05-15 11:24 Dmitry Nikolaev
2016-05-16 20:20 ` Alex Kost
2016-05-12 19:45 Dmitry Nikolaev
2016-05-13 20:26 ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH3JXcGGwEswrsdBU7B0aewxZqo=wczQzLfWYqFGEPw_Hppj6Q@mail.gmail.com' \
    --to=cameltheman@gmail.com \
    --cc=alezost@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).