[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NAS drive
From: |
Roy Lemmon |
Subject: |
Re: NAS drive |
Date: |
Wed, 9 Dec 2020 12:44:45 +0000 |
Hi,
So I'm afraid it still doesn't work. Though with the following there are at
least no errors.
Here is the top section of the .scm file.
Cheers
Roy
config.scm
***********************
(use-modules (gnu))
(use-package-modules nfs emacs-xyz)
(use-service-modules desktop networking ssh xorg mail docker)
(operating-system
(setuid-programs
(cons*
(file-append nfs-utils "/sbin/mount.nfs")
%setuid-programs))
(locale "en_GB.utf8")
(host-name "parton")
(timezone "Europe/London")
(keyboard-layout (keyboard-layout "gb" "extd"))
(bootloader
(bootloader-configuration
(bootloader grub-efi-bootloader)
(target "/boot/efi")
(keyboard-layout keyboard-layout)))
.... cont.
On Tue, Dec 8, 2020 at 6:46 PM 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
>
--
********************************
Roy Lemmon
STFC Daresbury Laboratory
United Kingdom
********************************
- NAS drive, Roy Lemmon, 2020/12/07
- Re: NAS drive, Pierre Neidhardt, 2020/12/08
- Re: NAS drive, Roy Lemmon, 2020/12/08
- Re: NAS drive, Pierre Neidhardt, 2020/12/08
- Re: NAS drive, Tobias Geerinckx-Rice, 2020/12/08
- Re: NAS drive, Roy Lemmon, 2020/12/08
- Re: NAS drive, Tobias Geerinckx-Rice, 2020/12/08
- Re: NAS drive, Roy Lemmon, 2020/12/08
- Re: NAS drive, Tobias Geerinckx-Rice, 2020/12/08
- Re: NAS drive, Roy Lemmon, 2020/12/08
- Re: NAS drive,
Roy Lemmon <=
- Re: NAS drive, Tobias Geerinckx-Rice, 2020/12/09
- Re: NAS drive, Roy Lemmon, 2020/12/10
- Re: NAS drive, Tobias Geerinckx-Rice, 2020/12/10
- Re: NAS drive, Roy Lemmon, 2020/12/10