Hello!
swedebugia@riseup.net writes:
Toggle quote (8 lines)
> gnu/services.scm:703:40: In procedure service-kind: Wrong type argument:> #<<slim-configuration> slim: #<package slim@1.3.6> gnu/packages/display-managers.scm:312 2963cc0> allow-empty-passwords?:> #t auto-login?: #t default-user: "annika" theme: #<<file-append> base:> #<origin #<<git-reference> url:> "git://git.savannah.gnu.org/guix/guix-artwork.git" commit:> "6998d30425289b087c64f63e7415df2241e591db" recursive?: #f>
[...]
Toggle quote (19 lines)
> (services (cons* > (slim-configuration> (auto-login? #t)> (default-user "swedebugia")> (auto-login-session "xfdesktop"))> (guix-configuration> ; #:authorize-keys (cons "/home/swedebugia/berlin.guixsd.org.pub"> ; %default-authorized-guix-keys)> (substitute-urls (cons "https://berlin.guixsd.org"> %default-substitute-urls)))> ;; Is this correct?> ; (tlp-servicy-type> ; (tlp-configuration> ; ;; Should I use parenteses instead of "#:"?> ; (cpu-scaling-govenor-on-ac (list "conservative"))> ; (cpu-scaling-govenor-on-bat (list "conservative"))))> (xfce-desktop-service)> %desktop-services))
This is because this 'services' field is expecting 'services' and getsother things like 'configuration records' instead.
You might want something like this (not tested):
Toggle snippet (25 lines)
(services (cons* (service slim-service-type (slim-configuration (auto-login? #t) (default-user "swedebugia") (auto-login-session "xfdesktop")))
(service tlp-servicy-type (tlp-configuration (cpu-scaling-governor-on-ac (list "conservative")) (cpu-scaling-governor-on-bat (list "conservative"))))
(xfce-desktop-service)
(modify-services %desktop-services (guix-service-type config => (guix-configuration (inherit config) (substitute-urls (cons "https://berlin.guixsd.org" %default-substitute-urls)) (authorized-keys (cons "/home/swedebugia/berlin.guixsd.org.pub" %default-authorized-guix-keys)))))))
The guix-service-type service needs to be modified because it is alreadyin %desktop-services, and you can't have it twice.
Toggle quote (2 lines)
> ; ;; Should I use parenteses instead of "#:"?
Things ending with '-configuration' are usually macros that can be usedto instantiate the corresponding records. They take arguments like'(field value)'. '#:' is used when passing arguments to normalfunctions.
This is complex, but you can usually know what things expect by lookingat the examples in the documentation.
If you have similar issues, please email help-guix@gnu.org instead.
Good luck, and don't hesitate to ask! :-)Clément