From: "hubert.lombard@ik.me" via <help-guix@gnu.org>
To: Richard Sent <richard@freakingpenguin.com>
Cc: "hubert.lombard@ik.me\" via" <help-guix@gnu.org>
Subject: Re: hurd-vm-service-type into /etc/config.scm
Date: Mon, 18 Mar 2024 15:52:44 +0100 [thread overview]
Message-ID: <178cd47b36dd1ecf6dd97df742b3fce6@mail.infomaniak.com> (raw)
In-Reply-To: <87il1m2p1q.fsf@freakingpenguin.com>
Hi Richard !
Le 2024-03-16T16:07:29.000+01:00, Richard Sent
<richard@freakingpenguin.com> a écrit :
> Hubert,
> Your issue is in your operating-system services field. In the backtrace:
>
> --8<---------------cut here---------------start------------->8---
>
> In procedure append: Wrong type argument in position 2 (expecting
>
> empty list) #<<service> type: #<service-type bluetooth ...
>
> --8<---------------cut here---------------end--------------->8---
>
> You have several services outside of the (list) call, so you're
>
> basically running
>
> --8<---------------cut here---------------start------------->8---
>
> (append (list (service-1 service-2) service-3 service-4
>
> %desktop-services))
>
> --8<---------------cut here---------------end--------------->8---
>
> Append only takes lists as arguments. %desktop-services is a list, but
>
> bluetooth service and hurd-vm service are not.
>
> --
>
> Take it easy,
>
> Richard Sent
>
> Making my computer weirder one commit at a time.
Thank you :) while/after reading your answer, I have tried to change
my config file
by adding %base-services like it :
/etc/config.scm
--8<---------------cut here---------------start------------->8---
(services
(append (list (service gnome-desktop-service-type)
(service cups-service-type)
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout))))
;; Voici la liste des services par
défaut à laquelle nous
;; ajoutons nos propres services.
%desktop-services))
(services (cons* (service bluetooth-service-type)
(bluetooth-configuration
(auto-enable? #t)))
(service hurd-vm-service-type
(hurd-vm-configuration
(disk-size (* 10000 (expt 2
20))) ;10G
(memory-size
1024))) ;1024MiB
%base-services))
--8<---------------cut here---------------end--------------->8---
But I get error "invalid field specifier"
$ sudo guix system reconfigure /etc/config.scm
Mot de passe :
/etc/config.scm:59:3: erreur : (services (cons* (service
bluetooth-service-type) (bluetooth-configuration (auto-enable? #t)))
(service hurd-vm-service-type (hurd-vm-configuration (disk-size (*
10000 (expt 2 20))) (memory-size 1024))) %base-services) : invalid
field specifier
Instead of putting the Hurd in %base-services (arbitrarily inserted by
myself), maybe I should create a service like %define-my-service, or
use (modify-services.
These are 2 possibilities that I should be able to implement... To
this end, I do research and the tests that go with it.
It should come back to me, because I had already managed to modify
effectively the configuration file on an old computer some time ago...
If only I had kept a copy:)
o/
next prev parent reply other threads:[~2024-03-18 14:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 18:33 hurd-vm-service-type into /etc/config.scm hubert.lombard@ik.me via
2024-03-16 15:07 ` Richard Sent
2024-03-18 14:52 ` hubert.lombard@ik.me via [this message]
2024-03-19 7:37 ` Saku Laesvuori
2024-03-20 9:55 ` hubert.lombard@ik.me via
2024-03-27 10:21 ` hubert.lombard@ik.me via
2024-03-28 6:58 ` Saku Laesvuori
[not found] ` <10aacff482f8f87b3cbff2b645758e9c@mail.infomaniak.com>
2024-03-30 20:25 ` hubert.lombard@ik.me via
2024-04-09 9:01 ` Saku Laesvuori
2024-04-10 21:08 ` hubert.lombard
2024-04-11 5:50 ` Saku Laesvuori
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=178cd47b36dd1ecf6dd97df742b3fce6@mail.infomaniak.com \
--to=help-guix@gnu.org \
--cc=hubert.lombard@ik.me \
--cc=richard@freakingpenguin.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.
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).