Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-18 Thread Ericson, John
Hmm, I think we should strive to keep nix as minimal as possible. This is definitely the killer app for the builtin.fetch*. On Fri, Jan 15, 2016 at 8:51 AM, stewart mackenzie wrote: > On 15 Jan 2016 19:17, "Eelco Dolstra" wrote: > > Another

Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-15 Thread Eelco Dolstra
Hi, On 15/01/16 11:55, Rok Garbas wrote: > I can agree that evaluating for the second time is not optimal, I hope > there is a better way to do this, but I would really be against removing > the idea behind the feature. > > Usecases I'm solving with above solution are: - in one network servers

Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-15 Thread Eelco Dolstra
Hi, On 15/01/16 08:20, Vladimír Čunát wrote: > On 01/13/2016 10:40 PM, Matthew O'Gorman wrote: >> How can one define and use channels in the config files? > > I believe you want to read this: >

Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-15 Thread Rok Garbas
Hi Eelco, > I'm not so fond of how that feature is implemented: > > https://github.com/NixOS/nixpkgs/commit/a5992ad61b314104aff7e28a41ce101a1b0e7c35#commitcomment-14986820 > > so I may get rid of it for 16.03, before we end up having to maintain it > forever. > I really like this feature and

Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-15 Thread stewart mackenzie
On 15 Jan 2016 19:17, "Eelco Dolstra" wrote: > Another possibility would be to build the module system into Nix, so module > evaluation wouldn't depend on Nixpkgs. this seems to be a better longterm solution. ___ nix-dev

Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-13 Thread Matthew O'Gorman
Matthew O'Gorman writes: Also this did not work for me as I defined my container in my configuration.nix so when I try to do the nix-rebuild switch --upgrade it fails as there is not a configuration.nix in the container. My nixos files are located here

Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-13 Thread Domen Kožar
http://nixos.org/nixos/manual/index.html#sec-upgrading On Wed, Jan 13, 2016 at 10:40 PM, Matthew O'Gorman wrote: > Hi > > I started playing with nixos-containers and have been very pleased so > far. I wanted to try running unstable in one, but haven't been able to > figure out

Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-13 Thread Matthew O'Gorman
Domen Kožar writes: > http://nixos.org/nixos/manual/index.html#sec-upgrading > Thank you for the quick reply. So it is not possible to do this in the config files? I have to use nix-channel? I noticed this issue doubly because my container didn't upgrade when my core nixos

[Nix-dev] dist-upgrade? define channel declaratively?

2016-01-13 Thread Matthew O'Gorman
Hi I started playing with nixos-containers and have been very pleased so far. I wanted to try running unstable in one, but haven't been able to figure out how to do so. I tried setting these in my configuration of the container system.stateVersion = "unstable"; system.defaultChannel =