Re: [Nix-dev] NixOS small channel

2014-09-30 Thread Wout Mertens
Just to let you know I'm doing a happy dance right now :-) Great stuff! Wout. On Sep 30, 2014 2:27 AM, Eelco Dolstra eelco.dols...@logicblox.com wrote: Hi, Since last week there is a new NixOS channel: https://nixos.org/channels/nixos-14.04-small This is a variant of the regular NixOS

Re: [Nix-dev] NixOS small channel

2014-09-30 Thread Pascal Wittmann
On 09/30/2014 02:27 AM, Eelco Dolstra wrote: Hi, Since last week there is a new NixOS channel: https://nixos.org/channels/nixos-14.04-small This is a variant of the regular NixOS 14.04 channel mainly intended for servers that need fast security updates. It differs from the regular

Re: [Nix-dev] Channel update knocks my box offline

2014-09-30 Thread Mateusz Kowalczyk
On 09/23/2014 07:02 AM, Mateusz Kowalczyk wrote: Most recent nixos-unstable channel move knocks my box offline somehow. I can reach my local network but nothing on the outside. My network config[1] is pretty simple. I noticed this few days ago when I tried to switch to master but had no time

[Nix-dev] Reengineered npm2nix: call for feedback

2014-09-30 Thread Sander van der Burg
Hi everybody, Since the sprint in Ljubljana until now, I've been working on npm2nix's issues. I basically reengineered most of it (e.g. rewritten it to JavaScript and modularized it a bit further) and I think the implementation is fairly complete now. I've incorporated as much of Shea's

[Nix-dev] NILFS2, NixOS, nixpart and Blivet

2014-09-30 Thread Tim Barbour
NILFS2 is a log-structured filesystem which is now in the Linux kernel source tree, and supported by GRUB2. It should appeal to NixOS users because it avoids destructive update (changing a file produces a new version of the file). I have installed NixOS with all filesystems on NILFS2, but

[Nix-dev] build server

2014-09-30 Thread Tim Barbour
I would like to set up a nix build server, particularly for use with nixops. Is there a definitive document about how to do this, including cross-platform builds (e.g. ARM) ? Can it be done declaratively, or does one need to set environment variables ? So far I have found the following

Re: [Nix-dev] NILFS2, NixOS, nixpart and Blivet

2014-09-30 Thread Mateusz Kowalczyk
On 09/30/2014 12:08 PM, Tim Barbour wrote: NILFS2 is a log-structured filesystem which is now in the Linux kernel source tree, and supported by GRUB2. It should appeal to NixOS users because it avoids destructive update (changing a file produces a new version of the file). I have installed

Re: [Nix-dev] NILFS2, NixOS, nixpart and Blivet

2014-09-30 Thread aszlig
Good morning, On Tue, Sep 30, 2014 at 12:29:12PM +0100, Mateusz Kowalczyk wrote: Looks to me that all the scary-looking block in the blivet package does is replace hardcoded paths with paths to the nix-store that nix provides it with, a common practice. I think if you build and try to run the

Re: [Nix-dev] NILFS2, NixOS, nixpart and Blivet

2014-09-30 Thread aszlig
On Tue, Sep 30, 2014 at 09:08:41PM +1000, Tim Barbour wrote: The most serious problem is that NILFS2 needs to update /etc/mtab when mounting a filesystem, so that it can store information about the nilfs_cleanerd process associated with the mounted filesystem. If it cannot write to /etc/mtab,

[Nix-dev] nixos on latest macbook air

2014-09-30 Thread Tobias Pflug
Hi, i was wondering if anyone on this list has any experiences running nixos on the latest macbook air. I googled and searched the nixos wiki for some info on this but could not find anything. I just wonder if there are problems that others have run into during the process that can be

Re: [Nix-dev] Dealing with self-updating packages

2014-09-30 Thread Mateusz Kowalczyk
On 09/19/2014 07:42 PM, Russell O'Connor wrote: Dear nixers, I'm working on packaging gsutil https://developers.google.com/storage/docs/gsutil. This software comes with a feature that it can update itself by downloading the latest version and replacing itself in place. Obviously this

[Nix-dev] Dealing with self-updating packages

2014-09-30 Thread Russell O'Connor
Dear nixers, I'm working on packaging gsutil https://developers.google.com/storage/docs/gsutil. This software comes with a feature that it can update itself by downloading the latest version and replacing itself in place. Obviously this isn't going to work, and indeed when I force an update it

Re: [Nix-dev] NixOS small channel

2014-09-30 Thread John Wiegley
John Wiegley jo...@newartisans.com writes: Here's what the machine was trying to do when nixos-rebuild got hung: https://gist.github.com/e2e69a41a2dfea23ebc3 Just FYI: I left it running all night long, and it did at some point complete normally, so I guess whatever it was trying to do

Re: [Nix-dev] nixos on latest macbook air

2014-09-30 Thread Damien Cassou
On Tue, Sep 30, 2014 at 1:51 PM, Tobias Pflug tobias.pf...@gmx.net wrote: i was wondering if anyone on this list has any experiences running nixos on the latest macbook air. not answering your question: nixos runs fine on a MacBook Pro 9.2. -- Damien Cassou

Re: [Nix-dev] Reengineered npm2nix: call for feedback

2014-09-30 Thread Paul Colomiets
Hi, On Tue, Sep 30, 2014 at 1:13 PM, Sander van der Burg svanderb...@gmail.com wrote: Hopefully, you can also try npm2nix on your projects to find out whether there any additional issues. :) If package.json doesn't contains name or version npm2nix, the build fails with the following: error:

[Nix-dev] Concurrent garbage collection

2014-09-30 Thread Vincent Laporte
Hi, Out of curiosity, I wonder what happens if the garbage collection (nix-collect-garbage) is run while some other process builds a package (nix-build or nix-env -i), both operating on the same store at the same time. In particular, the collector may remove a path that is a dependency of a

Re: [Nix-dev] NixOS small channel

2014-09-30 Thread Anderson Torres
Yes! t is cool! :) But, how about the other channels? I use the nixos-unstable here, can I mix both, small and unstable, in my local machine? 2014-09-30 11:34 GMT-03:00 John Wiegley jo...@newartisans.com: John Wiegley jo...@newartisans.com writes: Here's what the machine was trying to do when

[Nix-dev] build server

2014-09-30 Thread Tim Barbour
Tim Barbour writes: I would like to set up a nix build server, particularly for use with nixops. Is there a definitive document about how to do this, including cross-platform builds (e.g. ARM) ? Well, I got it working (no cross-build yet) using nix.buildMachines as described here:

Re: [Nix-dev] Concurrent garbage collection

2014-09-30 Thread Shea Levy
Check out https://github.com/NixOS/nix/blob/master/src/libstore/gc.cc, particularly addTempRoot (which is called by nix before any new nix path is written or considered valid) and openGCLock. The answer to what happens is that invariants are preserved, though possibly at the cost of a long wait.