Re: [Nix-dev] [UTILS] nixos-scripts - searching for testers / contributors!

2015-06-09 Thread stewart mackenzie
This is a great idea, after introducing nix to my company a mate changed
crontab without thinking of doing it via configuration.nix, he then
wondered why the database backup scripts weren't working after I
nixos-rebuild switch.

emulating the git command set would really drive home
infrastructure-as-code and the learning curve could be more tolerable.

On 10 Jun 2015 00:56, Joel Moberg joel.mob...@gmail.com wrote:
 I think nix-env could be more modelled more like the git interface. You
have
 some scripts that already are similar to some commands in git. This would
 make it easier for new people to learn and remember what you can do.
 Subcommands such as: checkout, diff, list/ls, env, channel/?remote?,
would be
 appropriate.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] YouCompleteMe vim plugin

2015-06-09 Thread Tobias Pflug
Hi,

i recently started setting up nixos on a separate partition on my
macbook. One annoying little thing I don't get past is one vim
plugin that I need to work: YouCompleteMe: 
https://github.com/Valloric/YouCompleteMe

I am aware that there is some sort of vimplugin2nix
solution but that would mean given up on my existing vim configuration
which I share among multiple computers which just uses vundle. Could
someone suggest me a straight-forward solution that does not entail
completely changing my existing vim setup/configuration ? I just can't
manage to get it to compile.

thanks a lot in advance for any help.
best,

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


Re: [Nix-dev] YouCompleteMe vim plugin

2015-06-09 Thread Marc Weber
I use such, instead of VAM you can use vundle, however this direct
comparison has shown that VAM event starts up faster.

  vimMarc =
 vim_configurable.customize {
   name = vim-marc-weber;
   vimrcConfig.vam.knownPlugins = vimPluginsUsedByMarcWeber;
   vimrcConfig.vam.pluginDictionaries = [
''vim-addon-manager''
{ name = ''github:MarcWeber''; }
{ name = ''vim-addon-other''; }
{ name = ''vim-addon-local-vimrc''; }
{ name = ''snipmate''; }
{ name = ''vim-snippets''; }
{ name = ''vim-addon-mru''; }
{ name = ''vim-addon-commenting''; }
{ name = ''vim-addon-sql''; }
{ name = ''vim-addon-completion''; }
{ name = ''vim-addon-async''; }
{ name = ''tlib''; }
{ name = ''vim-addon-toggle-buffer''; }
{ name = ''vim-addon-git''; }
{ name = ''vim-addon-mw-utils''; }
{ name = ''vim-addon-goto-thing-at-cursor''; }
{ name = ''matchit.zip''; }
{ name = ''vim-addon-syntax-checker''; }
{ name = ''vim-addon-rfc''; }
{ name = ''vim-addon-surround''; }
{ name = ''vim-addon-toc''; }
{ name = ''vim-addon-haskell''; filename_regex = 
''\%(\%(l\)hs\|cabal\)$$''; }
{ filename_regex = ''\%(php\|inc\|php.inc\|hsc\|lhs\)$$''; names = 
[ ''phpcomplete'' ''vim-addon-xdebug'' ''vim-addon-php-manual'' ]; }
{ filename_regex = ''\.\%(iced\|coffee\)$$''; names = [ 
''sourcemap.vim'' ''vim-iced-coffee-script'' ]; }
{ name = ''vim-addon-haskell''; filetype_regex = 
''\%(cabal\|hs\|hsc\|lhs\)$$''; }
{ filetype_regex = ''\%(rb)$$''; names = [ ''vim-ruby'' 
''vim-addon-rdebug'' ''vim-addon-ruby-debug-ide'' ''textobj-rubyblock'' ]; }
{ filetype_regex = ''\%(rs)$$''; names = [ ''rust'' ]; }
{ filetype_regex = ''\%(nix)$$''; names = [ ''vim-addon-nix'' ]; }
{ filetype_regex = ''\%(vim)$$''; names = [ ''reload'' 
''vim-dev-plugin'' ]; }
{ name = ''sparkup''; filename_regex = 
''\%(html\|xml\|php\|php.inc\|inc\)''; }
];
 };

Documentation see misc/vim-plugins/vim-utils.nix

As alternative you can just install YouCompleteMe and symlink that
directory ~/.nix-profile/... into your vundle dir.

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


Re: [Nix-dev] [UTILS] nixos-scripts - searching for testers / contributors!

2015-06-09 Thread Joel Moberg
I would like to see the diff feature in nix-env. Or something that tells you 
a little more about what changed between generations.

I think nix-env could be more modelled more like the git interface. You have 
some scripts that already are similar to some commands in git. This would 
make it easier for new people to learn and remember what you can do. 
Subcommands such as: checkout, diff, list/ls, env, channel/?remote?, would be 
appropriate.


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


Re: [Nix-dev] [UTILS] nixos-scripts - searching for testers / contributors!

2015-06-09 Thread Vladimír Čunát
On 06/09/2015 06:55 PM, Joel Moberg wrote:
 I would like to see the diff feature in nix-env.

That should be best done by diffing the json trees in manifest.nix
(which is present in root of every profile).

Vladimir




smime.p7s
Description: S/MIME Cryptographic Signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev