[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nnn-service-type for guix home
From: |
Oleg Pykhalov |
Subject: |
Re: nnn-service-type for guix home |
Date: |
Mon, 25 Oct 2021 14:34:48 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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
signature.asc
Description: PGP signature