[Nix-dev] NixOS Foundation

2015-07-08 Thread Rob Vermaas
Hi,

Last month, the NixOS Foundation came to life. The foundation was
started to support the NixOS related projects and its infrastructure,
and improve continuity for this.

One of the main reasons we needed to create a foundation, is to start
up fundraising for extending and maintaining the current
infrastructure. Until now, we have been greatly supported by
institutions and companies, such as Delft University of Technology,
LogicBlox and Rackspace. They will continue to do so, however, we need
to start raising funds if we want to extend our infrastructure and
keep the current infrastructure running.

Previously people and companies have asked if there is a way for them
to contribute hardware or donate money, to allow the infrastructure to
be extended, e.g. by adding build machines in the hydra.nixos.org
buildfarm. This was difficult, as there was no entity available to
receive such donations, except for private persons, which causes
issues with tax regulations and ownership. The foundation solves this
problem. Also, because the foundation will now take ownership of
maintaining the infrastructure, it will be easier for people to roll
on and off with regards to running and maintaining the infrastructure,
which should improve continuity.

Currently there are 3 board members for the foundation:

 - Eelco Dolstra, Chairman
 - Armijn Hemel, Secretary
 - Rob Vermaas, Treasurer

Note that the board members are doing this on a strictly voluntary
basis, which means they will not get paid by the foundation. In the
next year, we will try to add 1 or 2 more members from the NixOS
community.

More information on the can be found at: http://nixos.org/nixos/foundation.html

So now the begging starts :-) We would like people to start supporting
the NixOS foundation (financially, your commits/work have already been
awesome!). We have set up some PayPal buttons which can be used to do
a one-time donation to the foundation, or set up a monthly donation
(even better!) . Bank transfer is also available. We will list all
people/companies who have donated, if they wish to be listed, on the
foundation webpage.

Your donation would be very much appreciated! To give a good example,
I have personally donated 100 euro to the foundation.

The information on donations can be found here:
http://nixos.org/nixos/foundation.html

We will try to be as transparent as possible with regards to the
spending of donations to the foundation. We will extend the foundation
webpage with reports of donations received, and with reports about the
spending.

If you have any questions, please let us know. We are still in the
phase of starting up everything, so please bear with us!

Cheers,
-- 
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] NixOS Foundation

2015-07-08 Thread Rob Vermaas
Hi Luca,

Will look into it immediately! Thanks!

Cheers,
Rob

On Wed, Jul 8, 2015 at 9:27 AM, Luca Bruno  wrote:
> Great thanks! It appears that the donation page from paypal is in Dutch.
> Isn't it possible to default to English? I don't see a way to change the
> language of the donation page.
>
> Best regards,
> ___
> 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] NixOS Foundation

2015-07-08 Thread Luca Bruno
Great thanks! It appears that the donation page from paypal is in Dutch.
Isn't it possible to default to English? I don't see a way to change the
language of the donation page.

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


[Nix-dev] Recovering from a failed GRUB update.

2015-07-08 Thread roconnor
For some unknown reason my NixOS update on my laptop last night failed to 
properly install GRUB (even though I claim that GRUB completed 
sucessfully).  When I rebooted I was met with a simple grub prompt

grub>

and no boot menu.


Here is what I did to recover.

(1) I booted from a NixOS install media and logged in as root.

(2) I mounted my hard disk at /mnt:
 mount /dev/sda /mnt

(3) I browsed the system profiles to select the one I wanted to reactive:
 ls -l /mnt/nix/var/nix/profiles/system*

My lastest generation is system-27-link.  For safety I decided I 
wanted to active system-26-link.

(4) Bind dev and friends:  Loosely following the nixos-install script, I 
ran the following commands:
 mount --rbind /dev /mnt/dev
 mount --rbind /proc /mnt/proc
 mount --rbind /sys /mnt/sys

(5) I reactivated the system-26-link generation
 NIXOS_INSTALL_GRUB=1 chroot /mnt 
/nix/var/nix/profiles/system-26-link/bin/switch-to-configuration boot

After that I rebooted, and I was fine.


This is all written from memory, so there may be errors.

Also, I didn't actually run the command in step (5).  I actually ran
 chroot /mnt /bin/sh
and from the shell I ran the switch-to-configuration command.


Currently, I'm too scared to try to reproduce the GRUB install failure.

-- 
Russell O'Connor  
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Recovering from a failed GRUB update.

2015-07-08 Thread Lluís Batlle i Rossell
Hi,

you have nixos-install --chroot.

I am not running master - no idea about the grub problem.

Regards,
Lluís.

On Wed, Jul 08, 2015 at 08:20:22AM -0700, rocon...@theorem.ca wrote:
> For some unknown reason my NixOS update on my laptop last night failed to 
> properly install GRUB (even though I claim that GRUB completed 
> sucessfully).  When I rebooted I was met with a simple grub prompt
> 
> grub>
> 
> and no boot menu.
> 
> 
> Here is what I did to recover.
> 
> (1) I booted from a NixOS install media and logged in as root.
> 
> (2) I mounted my hard disk at /mnt:
>  mount /dev/sda /mnt
> 
> (3) I browsed the system profiles to select the one I wanted to reactive:
>  ls -l /mnt/nix/var/nix/profiles/system*
> 
> My lastest generation is system-27-link.  For safety I decided I 
> wanted to active system-26-link.
> 
> (4) Bind dev and friends:  Loosely following the nixos-install script, I 
> ran the following commands:
>  mount --rbind /dev /mnt/dev
>  mount --rbind /proc /mnt/proc
>  mount --rbind /sys /mnt/sys
> 
> (5) I reactivated the system-26-link generation
>  NIXOS_INSTALL_GRUB=1 chroot /mnt 
> /nix/var/nix/profiles/system-26-link/bin/switch-to-configuration boot
> 
> After that I rebooted, and I was fine.
> 
> 
> This is all written from memory, so there may be errors.
> 
> Also, I didn't actually run the command in step (5).  I actually ran
>  chroot /mnt /bin/sh
> and from the shell I ran the switch-to-configuration command.
> 
> 
> Currently, I'm too scared to try to reproduce the GRUB install failure.
> 
> -- 
> Russell O'Connor  
> ``All talk about `theft,''' the general counsel of the American Graphophone
> Company wrote, ``is the merest claptrap, for there exists no property in
> ideas musical, literary or artistic, except as defined by statute.''
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
(Escriu-me xifrat si saps PGP / Write ciphered if you know PGP)
PGP key D4831A8A - https://emailselfdefense.fsf.org/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Build .deb via nix (hydra?)

2015-07-08 Thread Arseniy Seroka
Hello!

Is there a way to build project (with default.nix in it) and make a .deb as
a result?

Can I do this with the help of hydra? If so, can someone give me an example
how to
do it properly?
Or even better if I can do it only with the help of nix-build.

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


[Nix-dev] Trouble building with pkgconfig (dwm, current nixos)

2015-07-08 Thread James Felix Black
Hi, all,

I’m enjoying my time with NixOS so far, but I’m having a devil of a time 
building a patched version of the dwm window manager. I’ve been able to 
successfully apply the dwm+pango patch, by adding the following to 
configuration.nix:

  nixpkgs.config.dwm = { patches = let pp = pkgs.fetchurl {
  url = 
"http://dwm.suckless.org/patches/dwm-6.0-pango.diff";;
  sha256 = 
"3bd45a8b4e28258002ffa2f62f5dece7913ef476ea76e2eb6d3d85817ac8cc9e";
};
   in
 [pp]; };

This applies the patch correctly, but then dwm fails to build; it needs 
pkgconfig, libXft, and pango in addition to the dependencies declared in the 
dwm/default.nix expression. So I’ve overridden the buildInputs as such:

  environment.systemPackages = with pkgs; [
  # stuff elided ...
  (lib.overrideDerivation dwm (attrs: { buildInputs = attrs.buildInputs ++ 
[xlibs.libXft xlibs.libXinerama pango pkgconfig]; }))
  ];

OK, this now seems to pull in the required libraries; but now, the build error 
is that the pkg_config binary (which gets called in the patched Makefile) can’t 
find any of the .pc files. I’m not 100% sure how to proceed here; I was 
operating under the assumption that having pkgconfig in the buildInputs would 
ensure that the various paths are correctly setup in the PKG_CONFIG_PATH. Is 
there something obvious I’m missing, here?

Thanks in advance! 
jfb

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


Re: [Nix-dev] "user ... has no home directory" error in emacs

2015-07-08 Thread Alexander Vorobiev
I think the reason is we use active directory with sssd (which is kind of a
standard for enterprise RHEL-based clusters) for authentication. My
understanding is sssd is not supported by Nix at the moment and the
LD_LIBRARY_PATH trick (to add the libnss_sss.so.2 from the host system to
the search path) suggested here https://github.com/NixOS/nix/issues/554 isn't
working for emacs.

Alex

On Sat, Jul 4, 2015 at 8:42 PM, James Cook  wrote:

> On 30 June 2015 at 07:46, Alex Vorobiev 
> wrote:
> > Hi,
> >
> > I have just installed nix-1.9 on RHEL 6.5 (using gcc-5.1 I compiled
> myself)
> > and I am trying to use it in single-user mode. I installed a few packages
> > and they all seem to work (after I unset LD_LIBRARY_PATH). I also
> installed
> > emacs which starts but shows this error message "user my_user_id has no
> > home directory" and doesn't load my initialization files. (I don't know
> > whether it is important but the system uses ldap/pam so there is no
> record
> > for me in /etc/passwd.) Regular non-nix emacs 24.5 works fine.
> >
> > Thanks,
> > Alex
>
> In case this is still troubling you, I found a thread where a Guix
> user (Guix is based on nix) was having a similar problem, and one
> question that came up was whether nscd was running on the system.
>
> The message:
> http://lists.gnu.org/archive/html/bug-guix/2015-02/msg00088.html
>
> James
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Build .deb via nix (hydra?)

2015-07-08 Thread Rob Vermaas
Hi Arseniy,

yes, it is possible. nix itself has an example of this in its release.nix.

  $ git clone https://github.com/NixOS/nix
  $ nix-build -A deb_ubuntu1504x86_64 release.nix

Cheers,
Rob

On Wed, Jul 8, 2015 at 5:52 PM, Arseniy Seroka  wrote:
> Hello!
>
> Is there a way to build project (with default.nix in it) and make a .deb as
> a result?
>
> Can I do this with the help of hydra? If so, can someone give me an example
> how to
> do it properly?
> Or even better if I can do it only with the help of nix-build.
>
> --
> Sincerely,
> Arseniy Seroka
>
> ___
> 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] Trouble building with pkgconfig (dwm, current nixos)

2015-07-08 Thread Luca Bruno
Try nativeBuildInputs instead of buildInputs.

On Wed, Jul 8, 2015 at 1:21 AM, James Felix Black 
wrote:

> Hi, all,
>
> I’m enjoying my time with NixOS so far, but I’m having a devil of a time
> building a patched version of the dwm window manager. I’ve been able to
> successfully apply the dwm+pango patch, by adding the following to
> configuration.nix:
>
>   nixpkgs.config.dwm = { patches = let pp = pkgs.fetchurl {
>   url = "
> http://dwm.suckless.org/patches/dwm-6.0-pango.diff";;
>   sha256 =
> "3bd45a8b4e28258002ffa2f62f5dece7913ef476ea76e2eb6d3d85817ac8cc9e";
> };
>in
>  [pp]; };
>
> This applies the patch correctly, but then dwm fails to build; it needs
> pkgconfig, libXft, and pango in addition to the dependencies declared in
> the dwm/default.nix expression. So I’ve overridden the buildInputs as such:
>
>   environment.systemPackages = with pkgs; [
>   # stuff elided ...
>   (lib.overrideDerivation dwm (attrs: { buildInputs =
> attrs.buildInputs ++ [xlibs.libXft xlibs.libXinerama pango pkgconfig]; }))
>   ];
>
> OK, this now seems to pull in the required libraries; but now, the build
> error is that the pkg_config binary (which gets called in the patched
> Makefile) can’t find any of the .pc files. I’m not 100% sure how to proceed
> here; I was operating under the assumption that having pkgconfig in the
> buildInputs would ensure that the various paths are correctly setup in the
> PKG_CONFIG_PATH. Is there something obvious I’m missing, here?
>
> Thanks in advance!
> jfb
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



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


Re: [Nix-dev] [(private) Meetup] I'm traveling through Europe, maybe I can meet some nixers?

2015-07-08 Thread Cillian de Róiste
Hi Matthias,

That sounds like fun! Let me know if you'll be passing through Munich,
maybe we can arrange something in advance.

Cheers,
Cillian

2015-07-07 20:57 GMT+02:00 Matthias Beyer :
> Hi Nixers!
>
> So, it happens that I will travel through Europe in August and
> September. Actually, I will travel by bike from Donau-Eschingen (where
> the Donau originates) to the Black Sea, if I get so far.
>
> Maybe I can meet some nixers while traveling? Would be a pleasure to
> meet some of you for a drink or something, if we can arrange that!
>
> Contact me!
>
> Besides: I'd love to attend at a nixos meetp, NixConn anyone? :-P
>
> --
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
>
> Proudly sent with mutt.
> Happily signed with gnupg.
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
NixOS: The Purely Functional Linux Distribution
http://nixos.org
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Recovering from a failed GRUB update.

2015-07-08 Thread William Kennington
This should be fixed in the current master if you force a reinstall of your
grub and remove the superfluous /boot/boot.

On Wed, Jul 8, 2015 at 8:23 AM Lluís Batlle i Rossell 
wrote:

> Hi,
>
> you have nixos-install --chroot.
>
> I am not running master - no idea about the grub problem.
>
> Regards,
> Lluís.
>
> On Wed, Jul 08, 2015 at 08:20:22AM -0700, rocon...@theorem.ca wrote:
> > For some unknown reason my NixOS update on my laptop last night failed to
> > properly install GRUB (even though I claim that GRUB completed
> > sucessfully).  When I rebooted I was met with a simple grub prompt
> >
> > grub>
> >
> > and no boot menu.
> >
> >
> > Here is what I did to recover.
> >
> > (1) I booted from a NixOS install media and logged in as root.
> >
> > (2) I mounted my hard disk at /mnt:
> >  mount /dev/sda /mnt
> >
> > (3) I browsed the system profiles to select the one I wanted to reactive:
> >  ls -l /mnt/nix/var/nix/profiles/system*
> >
> > My lastest generation is system-27-link.  For safety I decided I
> > wanted to active system-26-link.
> >
> > (4) Bind dev and friends:  Loosely following the nixos-install script, I
> > ran the following commands:
> >  mount --rbind /dev /mnt/dev
> >  mount --rbind /proc /mnt/proc
> >  mount --rbind /sys /mnt/sys
> >
> > (5) I reactivated the system-26-link generation
> >  NIXOS_INSTALL_GRUB=1 chroot /mnt
> /nix/var/nix/profiles/system-26-link/bin/switch-to-configuration boot
> >
> > After that I rebooted, and I was fine.
> >
> >
> > This is all written from memory, so there may be errors.
> >
> > Also, I didn't actually run the command in step (5).  I actually ran
> >  chroot /mnt /bin/sh
> > and from the shell I ran the switch-to-configuration command.
> >
> >
> > Currently, I'm too scared to try to reproduce the GRUB install failure.
> >
> > --
> > Russell O'Connor  
> > ``All talk about `theft,''' the general counsel of the American
> Graphophone
> > Company wrote, ``is the merest claptrap, for there exists no property in
> > ideas musical, literary or artistic, except as defined by statute.''
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
> --
> (Escriu-me xifrat si saps PGP / Write ciphered if you know PGP)
> PGP key D4831A8A - https://emailselfdefense.fsf.org/
> ___
> 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


Re: [Nix-dev] Build .deb via nix (hydra?)

2015-07-08 Thread Arseniy Seroka
Thank you, gonna look at it and make my own.

2015-07-08 21:49 GMT+03:00 Rob Vermaas :

> Hi Arseniy,
>
> yes, it is possible. nix itself has an example of this in its release.nix.
>
>   $ git clone https://github.com/NixOS/nix
>   $ nix-build -A deb_ubuntu1504x86_64 release.nix
>
> Cheers,
> Rob
>
> On Wed, Jul 8, 2015 at 5:52 PM, Arseniy Seroka 
> wrote:
> > Hello!
> >
> > Is there a way to build project (with default.nix in it) and make a .deb
> as
> > a result?
> >
> > Can I do this with the help of hydra? If so, can someone give me an
> example
> > how to
> > do it properly?
> > Or even better if I can do it only with the help of nix-build.
> >
> > --
> > Sincerely,
> > Arseniy Seroka
> >
> > ___
> > 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
>



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