[Top][All Lists]

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

Re: How to see resulting config.scm as a plain text?

From: Ludovic Courtès
Subject: Re: How to see resulting config.scm as a plain text?
Date: Sun, 02 Dec 2018 15:55:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)


<address@hidden> skribis:

> Hello,Guix Help! I have a trouble in understanding what the result of 
> compiled config.scm looks like.
> Is it possible to compile and examine my config.scm to see, for example, what 
>  `(display %desktop-services)` returns or my own %my-services returns after 
> my modifications?
>  I want be sure my changes are correct before I run system reconfiguration.
> I do not want to rebuild system when I only want to see if the use of 
> 'remove' function on the %desktop-services is correct.
> I only want to examine the result as a plain text, displaying variables.

You can do that from the REPL:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build icecat -nd
address@hidden ~/src/guix/+core-updates$ guix repl
GNU Guile 2.2.4
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guix-user)> ,use(gnu services desktop)
scheme@(guix-user)> %desktop-services
$1 = (#<<service> type: #<service-type slim 1728320> value: 
#<<slim-configuration> slim: #<package address@hidden 
gnu/packages/display-managers.scm:310 29c7000> allow-empty-passwords?: #t 
--8<---------------cut here---------------end--------------->8---

Though overall, I think ‘guix system extension-graph’ and ‘guix system
shepherd-graph’ are better tools to understand what’s going on with a
system configuration:

If you use Emacs-Guix, you can also use ‘M-x guix-default-services’ for



reply via email to

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