unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Roy Lemmon <roy@roylemmon.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: NAS drive
Date: Tue, 8 Dec 2020 18:58:39 +0000	[thread overview]
Message-ID: <CAH5rZC566-Fc2Zg-LPezux3Dv79KtF3m09vCCgx4P9NYC=VS0A@mail.gmail.com> (raw)
In-Reply-To: <87zh2oi1a9.fsf@nckx>

Hi,

Thanks for the explanation. It makes a lot of sense to me. I will try this
later tonight.

Cheers
Roy.

On Tue, 8 Dec 2020, 18:46 Tobias Geerinckx-Rice, <me@tobias.gr> wrote:

> Roy Lemmon 写道:
> > Sorry but it's been a long day ...
>
> Here too :-)
>
> > I have to specify the nfs package don't I ?
>
> The ‘NFS package’ in
>
>   (file-append nfs-utils "/sbin/mount.nfs")
>
> is nfs-utils, which is a variable defined in the (gnu packages
> nfs) Guile module.
>
> As you note, modules need to be imported first, which is what
>
> > (use-modules (gnu packages nfs))
> > (use-service-modules desktop networking ssh xorg mail)
>
> does.  This is the correct variant for your use case: you care
> only about the package which provides mount.nfs to clients, not
> about the server which is what (gnu services nfs) provides.
>
> Aside: the above snippet is completely equivalent to both:
>
>   (use-modules (gnu packages nfs))
>   (use-modules (gnu services desktop)
>                (gnu services networking)
>                (gnu services ssh)
>                (gnu services xorg)
>                (gnu services mail))
>
> and
>
>   (use-package-modules nfs)
>   (use-service-modules desktop networking ssh xorg mail)
>
> USE-{PACKAGE,SERVICE}-MODULES is Guix-specific syntactic sugar
> that saves a lot of space and typing when you're importing many
> package & service modules, as most people do.
>
> Kind regards,
>
> T G-R
>

  reply	other threads:[~2020-12-08 19:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-07 17:05 NAS drive Roy Lemmon
2020-12-08 10:06 ` Pierre Neidhardt
2020-12-08 12:03   ` Roy Lemmon
2020-12-08 12:28     ` Pierre Neidhardt
2020-12-08 15:01     ` Tobias Geerinckx-Rice
2020-12-08 15:19       ` Roy Lemmon
2020-12-08 15:30         ` Tobias Geerinckx-Rice
2020-12-08 17:42           ` Roy Lemmon
2020-12-08 18:46             ` Tobias Geerinckx-Rice
2020-12-08 18:58               ` Roy Lemmon [this message]
2020-12-09 12:44               ` Roy Lemmon
2020-12-09 21:12                 ` Tobias Geerinckx-Rice
2020-12-10  8:50                   ` Roy Lemmon
2020-12-10 16:16                     ` Tobias Geerinckx-Rice via
2020-12-10 16:56                       ` Roy Lemmon

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='CAH5rZC566-Fc2Zg-LPezux3Dv79KtF3m09vCCgx4P9NYC=VS0A@mail.gmail.com' \
    --to=roy@roylemmon.com \
    --cc=help-guix@gnu.org \
    --cc=me@tobias.gr \
    /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).