all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Pierre Neidhardt <ambrevar@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Вопрос по опциям монтирования SSD и logrotate
Date: Thu, 05 Apr 2018 10:46:35 +0200	[thread overview]
Message-ID: <87woxm2g7o.fsf@gnu.org> (raw)
In-Reply-To: <876057vyqc.fsf@gmail.com> (Pierre Neidhardt's message of "Wed, 04 Apr 2018 19:51:31 +0530")

Hello,

Pierre Neidhardt <ambrevar@gmail.com> skribis:

> Oleg Pykhalov <go.wigust@gmail.com> writes:
>
>>>> Хорошо, мы можем выполнять trim по cron (mcron).  Этот сервис есть в
>>>> %desktop-services?
>>>
>>> Нет.
>>>
>>> Список сервисов ‘%desktop-services’ можно посмотреть в
>>> ‘gnu/services/desktop.scm’ [2] или вызвав Guile:
>>>
>>>     guile -e '(@@ (gnu services desktop) %desktop-services)'
>>>
>>>> Или я должен явно прописывать это? 
>>>
>>> Да, примеры есть в документации Guix [3].
>>
>> The question was about how to check what services contains
>> ‘%desktop-services’ variable.
>
> Is there a convenient way to get a pretty print out of the result?

You can use ‘guix system extension-graph’ to view the graph of services
of your system:

  https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-system.html

Alternately, you can inspect the ‘%desktop-services’ variable at the REPL:

--8<---------------cut here---------------start------------->8---
$ guile
GNU Guile 2.2.3
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@(guile-user)> ,use(gnu services desktop)
scheme@(guile-user)> ,use(gnu services)
scheme@(guile-user)> (map (compose service-type-name service-kind) %desktop-services)
$1 = (slim screen-locker screen-locker mtp network-manager wpa-supplicant avahi udisks upower accountsservice colord geoclue polkit elogind dbus ntp login console-fonts agetty mingetty mingetty mingetty mingetty mingetty mingetty static-networking syslog urandom-seed guix nscd udev special-files)
--8<---------------cut here---------------end--------------->8---

HTH,
Ludo’.

  reply	other threads:[~2018-04-05  8:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-24 13:20 Вопрос по опциям монтирования SSD и logrotate Jone
2018-03-24 11:33 ` Oleg Pykhalov
2018-03-24 13:01   ` Pierre Neidhardt
2018-03-24 13:30     ` Pierre Neidhardt
2018-03-25 18:23       ` Oleg Pykhalov
2018-03-26 17:57         ` Pierre Neidhardt
2018-03-26 18:53           ` Oleg Pykhalov
2018-04-04 14:21         ` Pierre Neidhardt
2018-04-05  8:46           ` Ludovic Courtès [this message]
2018-04-05  8:51             ` Pierre Neidhardt

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=87woxm2g7o.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=ambrevar@gmail.com \
    --cc=help-guix@gnu.org \
    /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.