[Nix-dev] User's configuration files

2014-04-26 Thread Arseniy Seroka
Hi all.
Is it a good idea to create some option for a config file for a special
user? I mean, for example, `users.extraUsers.userName.vimrc`. Or it's out
of nixos idea? I think that will provide a good way of transferring
configuration to another machine.

This idea originally comes from making vim's state in nixos like emacs's. I
mean installing plugins etc. But expanding this idea I thought it would be
great to manage users configs by nixos too.

-- 
Sincerely,
Arseniy Seroka
about.me/senia
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] User's configuration files

2014-04-26 Thread Marc Weber
Excerpts from Arseniy Seroka's message of Sat Apr 26 18:54:38 + 2014:
 Is it a good idea to create some option for a config file for a special
 user? I mean, for example, `users.extraUsers.userName.vimrc`. Or it's out
 of nixos idea?
If it works for you why not. About plugins: vim-pi is the project you
might want to get a list of packages definitions from to create nix
derivations eventually - however I won't spend much time on it due to
neovim becoming more popular soon eventually.

There are two ways:
  1) install .vimrc to /var/run/current-system/sw/vimrc/user.vim
  and source it in users .vimrc, then it'll be updated, and you can
  still have machine specific .vimrc lines

  (Thus install the .vimrc system wide, and make sure it gets installed
  to a user specific directory so that it doesn't collide with other
  user's vimrc (unlikely, cause you're managing your own machine) )

  2) override .vimrc .. which is a less nice eventually.

It all depends on what you do

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev