From: Oleg Pykhalov <go.wigust@gmail.com>
To: jgart <jgart@dismail.de>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: nnn-service-type for guix home
Date: Mon, 25 Oct 2021 14:34:48 +0300 [thread overview]
Message-ID: <87pmrtficn.fsf@gmail.com> (raw)
In-Reply-To: <20211024194128.GC17236@gac.attlocal.net> (jgart@dismail.de's message of "Sun, 24 Oct 2021 19:41:28 -0400")
[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]
jgart <jgart@dismail.de> writes:
[…]
> So, something like this?
>
> (simple-service 'nnn-service-type
> home-environment-variables-service-type
> `(("NNN_BMS" . "d:$HOME/Documents;D:$HOME/Docs archive/")
> ("NNN_SSHFS" . ,(string-append sshfs "-o reconnect,idmap=user")) ; reference sshfs from store somehow
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
According to [1] this should be something like:
--8<---------------cut here---------------start------------->8---
(simple-service 'some-useful-env-vars-service
home-environment-variables-service-type
`(("NNN_SSHFS" . ,#~(format #f "~s"
(format #f "~a -o reconnect,idmap=user"
#$(file-append sshfs "/bin/sshfs"))))))
--8<---------------cut here---------------end--------------->8---
which will be evaluated to:
--8<---------------cut here---------------start------------->8---
$ guix home build home.scm
/gnu/store/...-home
$ grep -RF NNN_SSHFS /gnu/store/...-home/
/gnu/store/...-home/setup-environment:export NNN_SSHFS="/gnu/store/...-sshfs-2.10/bin/sshfs -o reconnect,idmap=user"
--8<---------------cut here---------------end--------------->8---
[1] https://github.com/jarun/nnn/wiki/Usage#configuration
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
prev parent reply other threads:[~2021-10-25 11:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-24 22:37 nnn-service-type for guix home jgart
2021-10-24 23:05 ` Oleg Pykhalov
2021-10-24 23:41 ` jgart
2021-10-25 11:34 ` Oleg Pykhalov [this message]
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=87pmrtficn.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=guix-devel@gnu.org \
--cc=jgart@dismail.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).