Improve use of adb rules

Julien LepillerMon Apr 18 11:15:05+0200 2022

934a114

Improve use of adb rules

modules/config/os.scm

8383
    (service qemu-binfmt-service-type
8484
      (qemu-binfmt-configuration
8585
        (platforms (lookup-qemu-platforms "arm" "aarch64" "i686" "ppc"))))
86+
    (udev-rules-service 'android android-udev-rules #:groups '("adbusers"))
8687
    (modify-services %desktop-services
8788
      (rottlog-service-type config =>
8889
        desktop-rotation-service-config)
89-
      (udev-service-type config =>
90-
        (udev-configuration
91-
          (inherit config)
92-
          (rules (cons* android-udev-rules
93-
                        (udev-configuration-rules config)))))
9490
      (gdm-service-type config =>
9591
       (gdm-configuration
9692
         (inherit config)

139135
                     (supplementary-groups '("netdev" "adbusers" "audio" "video" "kvm")))
140136
                   user))
141137
             (operating-system-users system)))
142-
      (groups (cons (user-group (system? #t) (name "adbusers"))
143-
                    %base-groups))
138+
      (groups %base-groups)
144139
      (hosts-file
145140
        (plain-file "hosts"
146141
          (string-append "127.0.0.1 " host-name ".lepiller.eu localhost " host-name "\n"