From: Ian Eure <ian@retrospec.tv>
To: Patrick Pippen <plpippen4@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: /etc/config.scm issues after modifying
Date: Sat, 24 Aug 2024 19:34:58 -0700 [thread overview]
Message-ID: <87bk1h2ua6.fsf@meson> (raw)
In-Reply-To: <7AFA4EDF-B265-436C-BF60-F0D2DA0EED9A@gmail.com>
Hi Patrick,
Patrick Pippen <plpippen4@gmail.com> writes:
> https://paste.debian.net/1327458
>
> Getting this error: /etc/config.scm:23:0 : error:
> %desktop-services: invalid field specifier
>
> I made these modifications trying to 1) not use substitutes and
> compile from source and add bspwm so that I can login into it
> via the default login manager.
>
> Is this not really correct way to do this or am I going about it
> the wrong way?
>
You have three errors in your configuration, all related. The
first is that your parens are unbalanced, which causes
%desktop-services to end up at the wrong level of nesting. This
is what causes the error you get, because you’re initializing the
fields of operating-system, and %desktop-services is not a valid
specification of a field name and value.
The second is that %my-services is a list of services, but you
wrap it in a second list on line 45. The third is that you have
%desktop-services in your service list on line 53, but are also
including a modified version of %desktop-services. This would
cause an error about duplicate services.
You want to fix the parens and remove the (service %my-services)
from line 45, and replace %desktop-services with %my-services on
line 53. Your services should look like this:
(services
(append
(list
(service xfce-desktop-service-type)
(service cups-service-type)
(set-xorg-configuration
(xorg-configuration (keyboard-layout keyboard-layout))))
;; This is the list of services we are appending to.
%my-services))
You may have other paren-balancing issues in there. If you’re
using an editor with decent Lisp support, the simplest way to fix
this is to reindent the whole file (in Emacs: C-x h C-M=\) and
eyeball it. Any issues will be reasonably evident in the
indentation of each field.
Best,
— Ian
prev parent reply other threads:[~2024-08-25 2:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-25 2:11 /etc/config.scm issues after modifying Patrick Pippen
2024-08-25 2:34 ` Ian Eure [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bk1h2ua6.fsf@meson \
--to=ian@retrospec.tv \
--cc=help-guix@gnu.org \
--cc=plpippen4@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.