Re: How do I install neovim plugins?

2020-09-19 Thread Yasuaki Kudo
Hi John,

Ah I see let me try this as well!

I need to do some gardening right now but will try after that 

Yasu

> On Sep 20, 2020, at 09:17, John Soo  wrote:
> 
> Hello Yasu,
> 
> I use a manifest file and guix-package -m to do declarative installations. 
> 
> I find it strikes a nice balance between having to rebuild for every 
> configuration change and making my environment declarative. 
> 
> Good luck!
> 
> - John



Re: How do I install neovim plugins?

2020-09-19 Thread Yasuaki Kudo
Well perhaps I will try your home manager and we can even improve it 

I want to spend some time learning Guix - I think highly 
composable/customizable software is what many organizations desire and is the 
area that is underserved - because many software vendors are not interested, 
half-interested with ulterior motives, or outright against it 

GNU Guix seems to address both philosophical and technological shortcomings of 
our society. 

> On Sep 20, 2020, at 08:41, Julien Lepiller  wrote:
> 
> 
> 
> Le 19 septembre 2020 19:18:14 GMT-04:00, y...@yasuaki.com a écrit :
>> Hi Julien,
>> 
>> Thank you for the pointer, here is what I did to make it work:
>> 
>>   set runtimepath+=/home/yasu/.guix-profile/share/vim/vimfiles
>> 
>> The plugin and neovim were installed as below:
>> 
>> guix package --install=vim-airline
>> guix package --install=nvim
> 
> Great! Glad I could help :)
> 
>> 
>> But this seems rather "imperative" and is not what I expected to do,
>> after spending many weeks trying home-manager from NixOS :-)
>> 
>> excerpt from .config/nixpkgs/home.nix
>> ...
>>  programs.neovim = {
>>enable = true;
>>plugins = [
>>  pkgs.vimPlugins.vim-airline
>>  pkgs.vimPlugins.vim-nix
>>];
>> ...
>> 
>> In the Nix world, I think people were not seeing much point of:
>> 
>>nix-env -i
>> 
>> which seems to be their equivalent of:
>> 
>>   guix package --install=
>> 
>> As an alternative, 'home-manger' seemed popular.
>> 
>> Would you say the same for Guix as well?
> 
> I agree, this is very imperative, but since we don't have an equivalent of 
> the home manager (except for my channel which is not very popular because I 
> don't recommend it for everyday use), this the kind of thing we usually do.
> 
> Actually, the most popular in guix is rather to set some *PATH environment 
> variable, sometimes even patching the software to honor them. But we don't 
> have any for neovim.
> 
> The equivalent of your home.nix example would be:
> 
> (user-home
>  neovim-home-type
>  (neovim-confiquration
>(plugins (list neovim-airline neovim-nix
> 
> (Assuming we actually have these packages)
> 
> The guix home manager follows the spirit of functionnal management closer 
> than the nix home manager, because itqmakes your entire home a symlink to a 
> store path, whereas nix home only overwrites some files that can later be 
> modified imperatively (by you or a software). That makes it harder to use and 
> breaks many software, but is much more satisfying :)
> 
>> 
>> -Yasu
>> 
>> 
>> 
>>> On 19.09.2020 23:40, Julien Lepiller wrote:
>>> If you install plugins in your profile, you can add:
>>> 
>>> set runpath+=/home/user/.guix-profile/share/nvim/site
>>> 
>>> In your .config/nvem/init.vim
>>> 
>>> I also have a guix-home-manager at
>>> https://framagit.org/tyreunom/guix-home-manager but it's more
>>> involved.
>>> 
>>> Le 19 septembre 2020 10:04:45 GMT-04:00, Yasuaki Kudo
>>>  a écrit :
>>> 
 I see some vim plugin packages for guix but I have no idea how I
 enable them in the neovim (nvim) that I installed in Guix.
 
 In NixOS I just used "home manager" and modified some existing
 template I found to add more plugins.



Re: How do I install neovim plugins?

2020-09-19 Thread John Soo
Hello Yasu,

I use a manifest file and guix-package -m to do declarative installations. 

I find it strikes a nice balance between having to rebuild for every 
configuration change and making my environment declarative. 

Good luck!

- John


Re: How do I install neovim plugins?

2020-09-19 Thread Julien Lepiller



Le 19 septembre 2020 19:18:14 GMT-04:00, y...@yasuaki.com a écrit :
>Hi Julien,
>
>Thank you for the pointer, here is what I did to make it work:
>
>set runtimepath+=/home/yasu/.guix-profile/share/vim/vimfiles
>
>The plugin and neovim were installed as below:
>
>guix package --install=vim-airline
>guix package --install=nvim

Great! Glad I could help :)

>
>But this seems rather "imperative" and is not what I expected to do,
>after spending many weeks trying home-manager from NixOS :-)
>
>excerpt from .config/nixpkgs/home.nix
>...
>   programs.neovim = {
> enable = true;
> plugins = [
>   pkgs.vimPlugins.vim-airline
>   pkgs.vimPlugins.vim-nix
> ];
>...
>
>In the Nix world, I think people were not seeing much point of:
>
> nix-env -i
>
>which seems to be their equivalent of:
>
>guix package --install=
>
>As an alternative, 'home-manger' seemed popular.
>
>Would you say the same for Guix as well?

I agree, this is very imperative, but since we don't have an equivalent of the 
home manager (except for my channel which is not very popular because I don't 
recommend it for everyday use), this the kind of thing we usually do.

Actually, the most popular in guix is rather to set some *PATH environment 
variable, sometimes even patching the software to honor them. But we don't have 
any for neovim.

The equivalent of your home.nix example would be:

(user-home
  neovim-home-type
  (neovim-confiquration
(plugins (list neovim-airline neovim-nix

(Assuming we actually have these packages)

The guix home manager follows the spirit of functionnal management closer than 
the nix home manager, because itqmakes your entire home a symlink to a store 
path, whereas nix home only overwrites some files that can later be modified 
imperatively (by you or a software). That makes it harder to use and breaks 
many software, but is much more satisfying :)

>
>-Yasu
>
>
>
>On 19.09.2020 23:40, Julien Lepiller wrote:
>> If you install plugins in your profile, you can add:
>> 
>> set runpath+=/home/user/.guix-profile/share/nvim/site
>> 
>> In your .config/nvem/init.vim
>> 
>> I also have a guix-home-manager at
>> https://framagit.org/tyreunom/guix-home-manager but it's more
>> involved.
>> 
>> Le 19 septembre 2020 10:04:45 GMT-04:00, Yasuaki Kudo
>>  a écrit :
>> 
>>> I see some vim plugin packages for guix but I have no idea how I
>>> enable them in the neovim (nvim) that I installed in Guix.
>>> 
>>> In NixOS I just used "home manager" and modified some existing
>>> template I found to add more plugins.



Re: How do I install neovim plugins?

2020-09-19 Thread yasu

Hi Julien,

Thank you for the pointer, here is what I did to make it work:

   set runtimepath+=/home/yasu/.guix-profile/share/vim/vimfiles

The plugin and neovim were installed as below:

guix package --install=vim-airline
guix package --install=nvim

But this seems rather "imperative" and is not what I expected to do,
after spending many weeks trying home-manager from NixOS :-)

excerpt from .config/nixpkgs/home.nix
...
  programs.neovim = {
enable = true;
plugins = [
  pkgs.vimPlugins.vim-airline
  pkgs.vimPlugins.vim-nix
];
...

In the Nix world, I think people were not seeing much point of:

nix-env -i

which seems to be their equivalent of:

   guix package --install=

As an alternative, 'home-manger' seemed popular.

Would you say the same for Guix as well?

-Yasu



On 19.09.2020 23:40, Julien Lepiller wrote:

If you install plugins in your profile, you can add:

set runpath+=/home/user/.guix-profile/share/nvim/site

In your .config/nvem/init.vim

I also have a guix-home-manager at
https://framagit.org/tyreunom/guix-home-manager but it's more
involved.

Le 19 septembre 2020 10:04:45 GMT-04:00, Yasuaki Kudo
 a écrit :


I see some vim plugin packages for guix but I have no idea how I
enable them in the neovim (nvim) that I installed in Guix.

In NixOS I just used "home manager" and modified some existing
template I found to add more plugins.




Re: how to add hwdb of keyboard

2020-09-19 Thread Stefan Huchler


>> I forked now the eudev definition to add my hwdb data:
>>
>> (add-before 'build-hwdb 'add-my-hwdb-file
>>   (lambda* (#:key outputs #:allow-other-keys)
>> (let ((out (assoc-ref outputs "out")))
>>   (call-with-output-file
>>   (string-append out 
>> "/etc/udev/hwdb.d/90-X220-keyboard.hwdb")
>> (lambda (port)
>>   (display
>>
>> "keyboard:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:pvrThinkPadX220*\n" port)
>>   (display "KEYBOARD_KEY_7b=compose\n" port)
>>   (display "KEYBOARD_KEY_39=enter\n" port)
>>   (display "KEYBOARD_KEY_79=space\n" port)
>>   (display "KEYBOARD_KEY_70=tab\n" port)
>>   (display "KEYBOARD_KEY_0f=backspace\n" port)
>>   (display "KEYBOARD_KEY_3a=home\n" port)
>>   (display "KEYBOARD_KEY_1c=end\n" port)
>>   (display "KEYBOARD_KEY_0e=backspace\n" port)
>>   (display "KEYBOARD_KEY_7d=backspace\n"
>>   port))
>>
>> Is there a way to make guix system priotise my modified eudev over the
>> upstream one?
>
> No, you would need to rebuild with your eudev as a replacement.  


When I try to do that:

(define udev-service-type
  (service-type (name 'udev)
(extensions
 (list (service-extension shepherd-root-service-type
  udev-shepherd-service)))
(compose concatenate)   ;concatenate the list of rules
(extend (lambda (config rules)
  (match config
(($  udev initial-rules)
 (udev-configuration
  (udev my-eudev)   ;the udev package to use
  (rules initial-rules

I get the message:
hint: Did you forget `(use-modules (gnu services base))'?

Even I have the use-module of that in there:
(use-modules (nongnu packages linux)
 (nongnu system linux-initrd)
 (gnu services base)
 (gnu system linux-initrd)
 (gnu services shepherd)
 (eudev)
 (gnu))

Another annoying thing is that I have to use the -I parameter from guix:
guix system reconfigure /etc/config.scm -L guix-packages/

I set that to .bashrc:

export GUIX_PACKAGE_PATH="~/guix-packages"

Why do I have to use the -L parameter when I already have defined that
path?

Any ideas?




Re: How do I install neovim plugins?

2020-09-19 Thread Julien Lepiller
If you install plugins in your profile, you can add:

set runpath+=/home/user/.guix-profile/share/nvim/site

In your .config/nvem/init.vim

I also have a guix-home-manager at 
https://framagit.org/tyreunom/guix-home-manager but it's more involved.


Le 19 septembre 2020 10:04:45 GMT-04:00, Yasuaki Kudo  a 
écrit :
>I see some vim plugin packages for guix but I have no idea how I enable
>them in the neovim (nvim) that I installed in Guix.
>
>In NixOS I just used "home manager" and modified some existing template
>I found to add more plugins.


How do I install neovim plugins?

2020-09-19 Thread Yasuaki Kudo
I see some vim plugin packages for guix but I have no idea how I enable them in 
the neovim (nvim) that I installed in Guix.

In NixOS I just used "home manager" and modified some existing template I found 
to add more plugins.




Re: Guix not seeing my Ethernet card

2020-09-19 Thread Barnabás Béres
I built the image but it did work I had the same problem. Than I tried with the 
development snapshot, and I saw that it bringed up my ethernet card but it was 
not able to finish booting into the tty. So I think it is a kernel related 
issue.

> 2020. szept. 19. dátummal, 12:34 időpontban Andreas Enge  
> írta:
> 
> On Sat, Sep 19, 2020 at 12:07:24PM +0200, Barnabás Béres wrote: Thanks 
> Andreas, but how can I add this on the LiveUSB?
> 
> I suppose you could follow the advice here:
>   
> https://guix.gnu.org/manual/devel/en/html_node/Building-the-Installation-Image.html
> and build a custom installation image with this module. But it
> requires that you already have a running Guix installation somewhere
> (which could be a binary installation on top of another distro).
> 
> Otherwise I have no further ideas, maybe someone else can chime in.
> 
> Andreas
> 



Re: Guix not seeing my Ethernet card

2020-09-19 Thread Andreas Enge
On Sat, Sep 19, 2020 at 12:07:24PM +0200, Barnabás Béres wrote:
> Thanks Andreas, but how can I add this on the LiveUSB?

I suppose you could follow the advice here:
   
https://guix.gnu.org/manual/devel/en/html_node/Building-the-Installation-Image.html
and build a custom installation image with this module. But it
requires that you already have a running Guix installation somewhere
(which could be a binary installation on top of another distro).

Otherwise I have no further ideas, maybe someone else can chime in.

Andreas




Re: Guix not seeing my Ethernet card

2020-09-19 Thread Barnabás Béres
Thanks Andreas, but how can I add this on the LiveUSB?

> 2020. szept. 19. dátummal, 10:06 időpontban Andreas Enge  
> írta:
> 
> Hello,
> 
>> On Sat, Sep 19, 2020 at 08:10:24AM +0200, Barnabás Béres wrote:
>> [1.019472] r8169 :07:00.0: realtek.ko not loaded, maybe it
>> needs to be added to initramfs?
> 
> that rings a bell! I do have the line
>  ;; Add kernel module for Symbios Logic SAS1068E
>  (initrd-modules (append (list "mptsas")
>  %base-initrd-modules))
> in one of my configurations.
> 
> So maybe you can copy this line and replace "mptsas" by "realtek".
> 
> Andreas
> 



How do I enable "Eternal Terminal"?

2020-09-19 Thread Yasuaki Kudo
Is it possible to run Eternal Terminal service on Guix?



Re: Guix not seeing my Ethernet card

2020-09-19 Thread Andreas Enge
Hello,

On Sat, Sep 19, 2020 at 08:10:24AM +0200, Barnabás Béres wrote:
> [1.019472] r8169 :07:00.0: realtek.ko not loaded, maybe it
> needs to be added to initramfs?

that rings a bell! I do have the line
  ;; Add kernel module for Symbios Logic SAS1068E
  (initrd-modules (append (list "mptsas")
  %base-initrd-modules))
in one of my configurations.

So maybe you can copy this line and replace "mptsas" by "realtek".

Andreas




Re: Guix not seeing my Ethernet card

2020-09-19 Thread Barnabás Béres
Hi raingloom,
Thanks for your reply. I'm having a Realtek RTL810xE PCI Express Fast
Ethernet card which is using the r8169 driver under tisqurell linux. It
show up under lshw and lspci Dmesg shows things  like that:

[1.019467] libphy: r8169: probed
[1.019472] r8169 :07:00.0: realtek.ko not loaded, maybe it
needs to be added to initramfs?
[1.073016] r8169: probe of :07:00.0 failed with error -49



raingloom  ezt írta (időpont: 2020. szept. 18., P,
22:24):

> On Fri, 18 Sep 2020 10:18:48 +0200
> Barnabás Béres  wrote:
>
> > Hello,
> > In the past I have used Guix in virtualbox and I wanted to install it
> > on my laptop as the main operating system. I booted into the live
> > environment but it didn’t see my Ethernet device (it works under
> > trisquel Linux). Can you please help me to solve this issue?
> >
> > Thanks in advance!
> >
> > Regards,
> > Barnabas Beres
>
> What is the specific hardware you are using?
> Also, could you copy the output of dmesg? Or whatever other logs you
> might have that are relevant.
> Like, does the device show up in lsusb/lspci/lshw?
>
> I'm just guessing, but it could be udev related. I've been having some
> issues with my Wacom tablet that were caused by that. (haven't fixed it
> yet. *sadface*)
>