Re: [Nix-dev] How do I install nslookup?

2015-09-09 Thread Bryan Gardiner
On Wed, Sep 09, 2015 at 08:18:33AM +0900, Yasuaki Kudo wrote:
> Hi I'm a novice user - how do I install nslookup?  I tried inetutils but it 
> did let help.  Cheers, Yasu

It's part of the 'bind' package, with host, dig, and others.

Cheers,
Bryan


pgpe6iW1IE3z7.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Logo improvement ideas

2015-09-09 Thread Rob Vermaas
Perhaps someone can set up a poll or something and engage people to
vote for it, to see if people prefer to stay with the old logo, or if
a new logo is preferred.

Personally, I like the old logo better, but that's just my opinion :)
(The new logo also looks nice btw)

Cheers,
Rob

On Tue, Sep 8, 2015 at 8:21 PM, Nicolas Pierron
 wrote:
> On Fri, Sep 4, 2015 at 9:44 AM, Guillaume Maudoux (Layus)
>  wrote:
>> Tim has invested some time in making great logos, and everybody seems to 
>> like the hex-half version.
>> It would be too sad to loose his job, so what is the next step ?
>> Who is authorized to do such a modification ?
>
> I don't think there is any precedent. The last time was when we
> settled on the first logo:
>   http://lists.science.uu.nl/pipermail/nix-dev/2009-October/003231.html
> (and replies)
>   http://lists.science.uu.nl/pipermail/nix-dev/2009-November/003326.html
> (and replies)
>
> I think the board of the NixOS foundation might have the last word,
> based on the community choices.
>
> --
> Nicolas Pierron
> http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev



-- 
Rob Vermaas

[email] rob.verm...@gmail.com
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How do I install nslookup?

2015-09-09 Thread Vladimír Čunát
On 09/09/2015 11:01 AM, Yasuaki Kudo wrote:
> Thank you - in general, how do I search for a package that contains
> the program desired?

That's why I showed how the command-not-found hook works. You can also
run explicitly $ command-not-found nslookup

> In addition, if I install bind, how do I disable the service (as I am
> only interested in nslookup)?

Installing by systemPackages or nix-env never automagically adds
services. Those are separate -- if you want a service, you set
services.foo.enable = true; and don't need to "install" it in any way.

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


[Nix-dev] [UTILS] nixos-scripts - version 0.2 released

2015-09-09 Thread Matthias Beyer
Hi NixOS community!

I released v0.2 of nixos-scripts yesterday.

nixos-scripts is a set of scripts to handle several things in NixOS.
For example, you can update your machine and generate a tag in your
configuration directory in just one step. You can update package
definitions in your local clone of nixpkgs and test build them in one
step by passing an URL from monitor.nixos.org
(which is down atm, I know :-/ ). Several other utilities are included
as well.

This release includes several improvements and new features:

* The "switch" command
* Includes your hostname in the generated tag by default
* generates no longer annotated tags
* can do all the things while not doing nixos-rebuild
* can tag the local clone of nixpkgs if you want
* does "switch" by default, "test" or "boot" (or others)
  can be passed as arguments

* The "update-package-def" command
* got a flag for not checking out a new branch
* got a flag for not switching back to the original branch
  after the update was committed

* Less output for the user (-v verbosity flag)
* More output for the developer (-d debugging flag)

* config-file support - you can put several things in
  ~/.nix-script.rc

* Channel tools - tools for handling nix-channel things.
* diffing channel generations
* switching channel generations
* listing channel generations

I also wrote a bit about this release on my blog[1].

You are very welcome to test it out, report bugs and of course,
feedback is welcome, too.

[1]: https://beyermatthias.de/blog/2015/09/08/nixos-scripts-version-0-2/

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


pgp7gzuD78Iq6.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How do I install nslookup?

2015-09-09 Thread Vladimír Čunát
Hi.

On 09/09/2015 01:18 AM, Yasuaki Kudo wrote:
> Hi I'm a novice user - how do I install nslookup?  I tried inetutils
> but it did let help.  Cheers, Yasu

$ nslookup
The program ‘nslookup’ is currently not installed. It is provided by
several packages. You can install it by typing one of the following:
  nix-env -i bind
  nix-env -i busybox


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


Re: [Nix-dev] jam passing in hydra but not locally

2015-09-09 Thread Samuel
Mmmm, it might be that this package is detecting something in my
computer that changes the way it compiles, yes.

I'll try with a chroot later today and see what happens

On 7 September 2015 at 22:32, Vladimír Čunát  wrote:
> Hi.
>
> On 09/07/2015 11:31 AM, Samuel wrote:
>> I suspect I miss something if this is working for everyone else ...
>
> Chroot builds is often what makes a difference. Hydra uses them, and
> they tend to avoid some problems. ("man nix.conf" contains info on them,
> for example.)
>
> Vladimir
>
>



-- 
Samuel
___
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 - version 0.2 released

2015-09-09 Thread Pascal Wittmann
On 09/09/2015 10:44 AM, Matthias Beyer wrote:
>  from monitor.nixos.org
> (which is down atm, I know :-/ )

It is up again, since yesterday.



signature.asc
Description: OpenPGP digital signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to add file to initrd?

2015-09-09 Thread Bryan Gardiner
On Tue, Sep 08, 2015 at 08:09:16PM +0100, Tomasz Czyż wrote:
> Hi,
> 
> Continuation of this thread:
> http://thread.gmane.org/gmane.linux.distributions.nixos/17879/focus=17880
> 
> I already successfully set up crypted partitions for mdadm and for zfs. The
> system is mounting them properly with standard nixos configuration using
> ``boot.initrd.luks`` configs.
> 
> But for each mount I have to pass password/key. I thought I can put keys
> for all partitions to initrd as initrd is on encrypted boot partition
> (boot). The process would be like:
> * enter password for grub
> * grub loads initrd
> * initrd unlocks all other partitions
> 
> Currently it works for me in very strange way.
> I am using preLVMCommands option with "echo 'mykey' > /key".
> I don't like it because I cannot keep my configuration on git somewhere
> cause it expose my passwords.

How about doing something like:

preLVMCommands =
  let key = builtins.readFile ./keyfile; in
  "echo '${key}' >/key"

then putting keyfile in gitignore?

- Bryan

> Is there any way to add key files to initrd? (I found some "extra" options
> for boot partition but not for initrd, maybe there are some hooks I'm not
> aware of)


pgpI7Lh6NM5O6.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOS Wikipedia Page

2015-09-09 Thread Matthias Beyer
Hui, thanks a lot!

On 08-09-2015 22:38:59, Eric Sagnes wrote:
> Hi,
> 
> I was surprised that there was no NixOS wikipedia page yet,
> so I added a basic one: https://en.wikipedia.org/wiki/NixOS
> 
> For now the content is very basic and mostly copied from 
> http://nixos.org/about 
> 
> It needs more information and references,
> so if you have a few minuts to waste please help improving it!
> 
> Cheers,
> -- 
> Eric Sagnes
> サニエ エリック
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


pgpvJ1QXIROch.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOS Wikipedia Page

2015-09-09 Thread Vladimír Čunát
Hi.

On 09/08/2015 03:38 PM, Eric Sagnes wrote:
> so if you have a few minutes to waste please help improving it!

I had a look at the first section at least and fixed a few small things.
Also, 15.09 is stated as the latest release (though it hasn't happened
yet), but I've left it, as it will be true soon, hopefully.

The section feels it might be biased towards NixOS, but I'm probably not
a good judge, as I can't be truly objective on that anymore.

And... thanks.


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


Re: [Nix-dev] Logo improvement ideas

2015-09-09 Thread Joachim Schiele
On 09.09.2015 13:19, Oliver Charles wrote:
> I'm in favour of the logo change, I think all the presented ones are
> great candidates for a new logo, and also really like the half-hex
> version. A poll sounds good, maybe we could use one of those online poll
> services, and have NixOS tweet a link/have a blog post appear in the planet?

sounds great, who does it?

> On Wed, Sep 9, 2015 at 8:37 AM Rob Vermaas  > wrote:
> 
> Perhaps someone can set up a poll or something and engage people to
> vote for it, to see if people prefer to stay with the old logo, or if
> a new logo is preferred.
> 
> Personally, I like the old logo better, but that's just my opinion :)
> (The new logo also looks nice btw)
> 
> Cheers,
> Rob
> 
> On Tue, Sep 8, 2015 at 8:21 PM, Nicolas Pierron
> >
> wrote:
> > On Fri, Sep 4, 2015 at 9:44 AM, Guillaume Maudoux (Layus)
> > > wrote:
> >> Tim has invested some time in making great logos, and everybody
> seems to like the hex-half version.
> >> It would be too sad to loose his job, so what is the next step ?
> >> Who is authorized to do such a modification ?
> >
> > I don't think there is any precedent. The last time was when we
> > settled on the first logo:
> > 
>  http://lists.science.uu.nl/pipermail/nix-dev/2009-October/003231.html
> > (and replies)
> > 
>  http://lists.science.uu.nl/pipermail/nix-dev/2009-November/003326.html
> > (and replies)
> >
> > I think the board of the NixOS foundation might have the last word,
> > based on the community choices.
> >
> > --
> > Nicolas Pierron
> > http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl 
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 
> 
> 
> --
> Rob Vermaas
> 
> [email] rob.verm...@gmail.com 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl 
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 
> 
> 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 


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


[Nix-dev] hotkey to change between qwerty <-> dvorak

2015-09-09 Thread stewart mackenzie
I have the issue when working in a team of needing to change my
keyboard layout from dvorak to qwerty.

What does the configuration.nix look like for this?

preferably  +  - 

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


Re: [Nix-dev] hotkey to change between qwerty <-> dvorak

2015-09-09 Thread Peter Simons
Hi Stewart,

I run "setxkbmap de" and "setxkbmap dvorak" to switch layouts. Not sure
how to bind that to a key, but I'd be interested to find out if someone
else knows?

Best regards,
Peter

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


Re: [Nix-dev] hotkey to change between qwerty <-> dvorak

2015-09-09 Thread Tomasz Czyż
Probably you could use this xorg setup:

http://unix.stackexchange.com/questions/106782/keyboard-layout-switch-ctrlshift-in-a-new-xorg

There is also few trayicon applications to do that, depends on which
environment you use.

2015-09-09 16:42 GMT+01:00 Peter Simons :

> Hi Stewart,
>
> I run "setxkbmap de" and "setxkbmap dvorak" to switch layouts. Not sure
> how to bind that to a key, but I'd be interested to find out if someone
> else knows?
>
> Best regards,
> Peter
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



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


[Nix-dev] How to build a download list for "sneaknet"?

2015-09-09 Thread Anderson Torres
Hello, Nixers!

I want to know if there is a way to build a download list for a
package and its dependencies.

There is a similar command on NetBSD's pkgsrc.
It builds a shell script, and that script, when executed in any
machine with Internet connection, downloads the sources and its
dependencies for a package. The script is just a list of command like
"wget -c url1 url2 url3".

There is a way to build the URL list, using Nix commands or some script?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] No such file or directory

2015-09-09 Thread Arseniy Seroka
Hello!
I've just tried to use any nixos (and nix) command and got:
```
> nix-env -q
error: getting status of ‘/nix/var/nix/profiles/per-user/root/P �P�b�
’: No such file or directory
> sudo nixos-rebuild switch
error: getting status of ‘/nix/var/nix/profiles/per-user/root/��$�� � �h�
’: No such file or directory
building Nix...
error: reading from file: Is a directory
error: getting status of ‘/nix/var/nix/profiles/per-user/root/0��s� �5mq ’:
No such file or directory
error: getting status of ‘/nix/var/nix/profiles/per-user/root/ �Sn� ��c��
’: No such file or directory
/tmp/nixos-rebuild.D4PZ5o/nix
�� ’: No such file or directoryvar/nix/profiles/per-user/root/P �@
building the system configuration...
error: getting status of ‘/nix/var/nix/profiles/per-user/root/�Yw� � ’:
No such file or directory
```
Did `sudo nix-store --verify --check-contents --repair` and everything is
ok.
My nixos.version is `16.03pre68239.bd84eba (Dingo).`

What's that? And how to fix it?
Yesterday I could make a rebuild successfully..

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


Re: [Nix-dev] No such file or directory

2015-09-09 Thread Arseniy Seroka
I don't know that happened but the solution is:
```
cd /nix/var/nix/profiles/per-user/root
rm -rf channels
cp -r channel--link channel # please note, that `ln` did't work
nixos-rebuild switch
```

2015-09-10 2:15 GMT+03:00 Arseniy Seroka :

> Hello!
> I've just tried to use any nixos (and nix) command and got:
> ```
> > nix-env -q
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/P �P�b�
> ’: No such file or directory
> > sudo nixos-rebuild switch
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/��$�� � �h�
> ’: No such file or directory
> building Nix...
> error: reading from file: Is a directory
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/0��s� �5mq
> ’: No such file or directory
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/ �Sn� ��c��
> ’: No such file or directory
> /tmp/nixos-rebuild.D4PZ5o/nix
> �� ’: No such file or directoryvar/nix/profiles/per-user/root/P �@
> building the system configuration...
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/�Yw� �
> ’: No such file or directory
> ```
> Did `sudo nix-store --verify --check-contents --repair` and everything is
> ok.
> My nixos.version is `16.03pre68239.bd84eba (Dingo).`
>
> What's that? And how to fix it?
> Yesterday I could make a rebuild successfully..
>
> --
> Sincerely,
> Arseniy Seroka
>



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


[Nix-dev] Patching bundled shared objects

2015-09-09 Thread Bryan Gardiner
I'm hoping the esteemed nix-dev list can give me some advice.  I'm
working on fixing the Jitsi binary package, since it fails to be
usable for audio calls, being unable to find Pulse, among other
things[1].  So fine, I need to set the RPATH, but it seems I have to
patch the .so files individually.  (Is that because this is a Java
program?  I have the same issue in my binary Scilab 5 PR.)  Running
ldd on all of the shipped .so files shows that there are lots of them
that depend on various system libraries here and there inconsistenly
(libjawt, libstdc++, X, libssl, a few others).

I'm wondering what the preferred approach is for handling this.  I can
see a few ways:

- lib.makeLibraryPath for each .so and patchelf it, tedious.

- lib.makeLibraryPath one large path and patchelf all objects to use
  it, easiest but more than necessary.

- Even better, is there a function I can pass a list of deps to and it
  will patch .so files with missing deps automagically?

It would be nice to build these bundled .so's from scratch, but that's
potentially a much bigger task.

Thanks in advance,
Bryan

[1] https://github.com/NixOS/nixpkgs/issues/3482


pgp7XZrpXTSJy.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] No such file or directory

2015-09-09 Thread Tomasz Kontusz
It looks a bit like a filesystem corruption - make sure to run fsck on it (or 
scrub it, if it's btrfs)

Dnia 10 września 2015 01:31:20 CEST, Arseniy Seroka  
napisał(a):
>I don't know that happened but the solution is:
>```
>cd /nix/var/nix/profiles/per-user/root
>rm -rf channels
>cp -r channel--link channel # please note, that `ln` did't
>work
>nixos-rebuild switch
>```
>
>2015-09-10 2:15 GMT+03:00 Arseniy Seroka :
>
>> Hello!
>> I've just tried to use any nixos (and nix) command and got:
>> ```
>> > nix-env -q
>> error: getting status of ‘/nix/var/nix/profiles/per-user/root/P
>�P�b�
>> ’: No such file or directory
>> > sudo nixos-rebuild switch
>> error: getting status of ‘/nix/var/nix/profiles/per-user/root/��$�� �
>�h�
>> ’: No such file or directory
>> building Nix...
>> error: reading from file: Is a directory
>> error: getting status of ‘/nix/var/nix/profiles/per-user/root/0��s�
>�5mq
>> ’: No such file or directory
>> error: getting status of ‘/nix/var/nix/profiles/per-user/root/ �Sn�
>��c��
>> ’: No such file or directory
>> /tmp/nixos-rebuild.D4PZ5o/nix
>> �� ’: No such file or directoryvar/nix/profiles/per-user/root/P
>�@
>> building the system configuration...
>> error: getting status of ‘/nix/var/nix/profiles/per-user/root/�Yw�
>�
>> ’: No such file or directory
>> ```
>> Did `sudo nix-store --verify --check-contents --repair` and
>everything is
>> ok.
>> My nixos.version is `16.03pre68239.bd84eba (Dingo).`
>>
>> What's that? And how to fix it?
>> Yesterday I could make a rebuild successfully..
>>
>> --
>> Sincerely,
>> Arseniy Seroka
>>
>
>
>
>-- 
>Sincerely,
>Arseniy Seroka
>
>
>
>
>___
>nix-dev mailing list
>nix-dev@lists.science.uu.nl
>http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
Wysłane za pomocą K-9 Mail.___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev