help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hurd-vm-service-type into /etc/config.scm


From: address@hidden
Subject: Re: hurd-vm-service-type into /etc/config.scm
Date: Mon, 18 Mar 2024 15:52:44 +0100

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]