Re: [Nix-dev] Nixos vps

2016-12-14 Thread Thomas Hunger
@Jörg - do you have a link to the kexec based installer?

On 14 December 2016 at 15:00, Jörg Thalheim  wrote:

> I recently made some good experience with kexec based installer.
>
> They can run basically run on every Linux out there.
>
>
> On 2016-12-14 01:06, Jeaye wrote:
> > I've been running a NixOS droplet on DigitalOcean, via nixos-in-place[1]
> for about a year. The process for getting it on there is janky, but it's
> smooth sailing afterward.
> >
> > 1: https://github.com/jeaye/nixos-in-place
> >
> > On Mon, Dec 12, 2016 at 02:30:07PM +0100, Alexandre Peyroux wrote:
> >> Anyone tried on a scaleway instance?
> >>
> >> 2016-12-12 13:48 GMT+01:00 Profpatsch :
> >>
> >>> On 16-12-12 12:42pm, Azul wrote:
>  works on a 2GB 3quid/month OVH kvm instance, only had to rename eth to
> >>> ens3
>  uname -a
>  Linux vps353091 4.4.36 #1-NixOS SMP Fri Dec 2 08:09:18 UTC 2016 x86_64
>  GNU/Linux
> 
>  nice one chaps
> >>> Very cool!
> >>>
> >>> --
> >>> Proudly written in Mutt with Vim on NixOS.
> >>> Q: Why is this email five sentences or less?
> >>> A: http://five.sentenc.es
> >>> May take up to five days to read your message. If it’s urgent, call me.
> >>> ___
> >>> 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 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] Nixos vps

2016-12-14 Thread Jörg Thalheim
I recently made some good experience with kexec based installer.

They can run basically run on every Linux out there.


On 2016-12-14 01:06, Jeaye wrote:
> I've been running a NixOS droplet on DigitalOcean, via nixos-in-place[1] for 
> about a year. The process for getting it on there is janky, but it's smooth 
> sailing afterward.
>
> 1: https://github.com/jeaye/nixos-in-place
>
> On Mon, Dec 12, 2016 at 02:30:07PM +0100, Alexandre Peyroux wrote:
>> Anyone tried on a scaleway instance?
>>
>> 2016-12-12 13:48 GMT+01:00 Profpatsch :
>>
>>> On 16-12-12 12:42pm, Azul wrote:
 works on a 2GB 3quid/month OVH kvm instance, only had to rename eth to
>>> ens3
 uname -a
 Linux vps353091 4.4.36 #1-NixOS SMP Fri Dec 2 08:09:18 UTC 2016 x86_64
 GNU/Linux

 nice one chaps
>>> Very cool!
>>>
>>> --
>>> Proudly written in Mutt with Vim on NixOS.
>>> Q: Why is this email five sentences or less?
>>> A: http://five.sentenc.es
>>> May take up to five days to read your message. If it’s urgent, call me.
>>> ___
>>> 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




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] Nixos vps

2016-12-12 Thread Profpatsch
On 16-12-12 12:42pm, Azul wrote:
> works on a 2GB 3quid/month OVH kvm instance, only had to rename eth to ens3
> 
> uname -a
> Linux vps353091 4.4.36 #1-NixOS SMP Fri Dec 2 08:09:18 UTC 2016 x86_64
> GNU/Linux
> 
> nice one chaps

Very cool!

-- 
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nixos vps

2016-12-12 Thread Azul
thanks all,

as usual lots of really good answers,

nixos-infect wins best github project name of the year !
that bash code, some cloud-init or libcloud magic is probably enough and
won't take too long.

- azul

On 12 December 2016 at 11:18, Profpatsch  wrote:

> On 16-12-12 08:36am, Azul wrote:
> > Now I would like to move those apps to nixos and just have one single set
> > of code to maintain, for that I just need some cheap vps provider
> providing
> > nixos instances.
>
> It is possible to “infect” existing distributions with nixos,
> that is to basically convert them.
>
> https://github.com/elitak/nixos-infect
> The script worked for me on an online.net box provisioned with
> Arch, by running it, editing the configs that were generated,
> manually executing the remaining three or four steps and then
> rebooting.
>
> Maybe that helps.
>
> --
> Proudly written in Mutt with Vim on NixOS.
> Q: Why is this email five sentences or less?
> A: http://five.sentenc.es
> May take up to five days to read your message. If it’s urgent, call me.
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nixos vps

2016-12-12 Thread Profpatsch
On 16-12-12 08:36am, Azul wrote:
> Now I would like to move those apps to nixos and just have one single set
> of code to maintain, for that I just need some cheap vps provider providing
> nixos instances.

It is possible to “infect” existing distributions with nixos,
that is to basically convert them.

https://github.com/elitak/nixos-infect
The script worked for me on an online.net box provisioned with
Arch, by running it, editing the configs that were generated,
manually executing the remaining three or four steps and then
rebooting.

Maybe that helps.

-- 
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nixos vps

2016-12-12 Thread Domen Kožar
Thomas also has a PR for nixops to support digital ocean:
https://github.com/NixOS/nixops/pull/562

On Mon, Dec 12, 2016 at 12:04 PM, Thomas Hunger  wrote:

> I tested various mechanisms and cloud providers over the last few weeks.
> All providers I tested worked, although I often got less CPU than
> advertised . Some combinations didn't work, e.g. I can't boot grsecurity
> kernels on EC2. I'm sure the latter is possible, I just didn't have time to
> investigate.
>
> For installation I found nixos-infect [1] to be the best solution. It uses
> obadz' undocumented NIXOS_LUSTRATE feature [2].
>
> ~
>
> [1]
> https://github.com/elitak/nixos-infect/blob/master/nixos-infect
>
> [2]
> https://github.com/NixOS/nixpkgs/pull/17784
>
> On 12 December 2016 at 09:47, Kamil Chmielewski 
> wrote:
>
>> I have done basic NixOps deploy support for CloudSigma:
>> * https://github.com/kamilchm/nixpkgs/commit/a64c343cd4baa07fe
>> a1bcac422a4eaa9fb2f86d9
>> * https://github.com/kamilchm/nixops/commit/c2ec202f6b9a1bd488
>> fa27abf3c218241b37b5d5
>>
>> But it's just a PoC.
>>
>> Best regards,
>> Kamil
>>
>> 2016-12-12 10:31 GMT+01:00 Nathan Bijnens :
>>
>>> I have used Vultr, but you first need to create an image, see:
>>> https://www.vultr.com/docs/install-nixos-on-vultr
>>>
>>> You can also use NixOS on Azure and Amazon AWS, ideally using NixOps...
>>>
>>> Best regards,
>>>   Nathan
>>>
>>>
>>> On Mon, Dec 12, 2016 at 9:37 AM Azul  wrote:
>>>
>>> Hey there,
>>>
>>> I use a set of really cheap OVH vps for a number of clustered apps
>>> (consul, zookeeper and other stuff), however since OVH do not provide a
>>> nixos KVM image I have deployed those on other OSs.
>>> Now I would like to move those apps to nixos and just have one single
>>> set of code to maintain, for that I just need some cheap vps provider
>>> providing nixos instances.
>>>
>>> What is out there that you have used ?
>>> ___
>>> 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 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] Nixos vps

2016-12-12 Thread Thomas Hunger
I tested various mechanisms and cloud providers over the last few weeks.
All providers I tested worked, although I often got less CPU than
advertised . Some combinations didn't work, e.g. I can't boot grsecurity
kernels on EC2. I'm sure the latter is possible, I just didn't have time to
investigate.

For installation I found nixos-infect [1] to be the best solution. It uses
obadz' undocumented NIXOS_LUSTRATE feature [2].

~

[1]
https://github.com/elitak/nixos-infect/blob/master/nixos-infect

[2]
https://github.com/NixOS/nixpkgs/pull/17784

On 12 December 2016 at 09:47, Kamil Chmielewski  wrote:

> I have done basic NixOps deploy support for CloudSigma:
> * https://github.com/kamilchm/nixpkgs/commit/
> a64c343cd4baa07fea1bcac422a4eaa9fb2f86d9
> * https://github.com/kamilchm/nixops/commit/c2ec202f6b9a1bd488fa27abf3c218
> 241b37b5d5
>
> But it's just a PoC.
>
> Best regards,
> Kamil
>
> 2016-12-12 10:31 GMT+01:00 Nathan Bijnens :
>
>> I have used Vultr, but you first need to create an image, see:
>> https://www.vultr.com/docs/install-nixos-on-vultr
>>
>> You can also use NixOS on Azure and Amazon AWS, ideally using NixOps...
>>
>> Best regards,
>>   Nathan
>>
>>
>> On Mon, Dec 12, 2016 at 9:37 AM Azul  wrote:
>>
>> Hey there,
>>
>> I use a set of really cheap OVH vps for a number of clustered apps
>> (consul, zookeeper and other stuff), however since OVH do not provide a
>> nixos KVM image I have deployed those on other OSs.
>> Now I would like to move those apps to nixos and just have one single set
>> of code to maintain, for that I just need some cheap vps provider providing
>> nixos instances.
>>
>> What is out there that you have used ?
>> ___
>> 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 mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nixos vps

2016-12-12 Thread Kamil Chmielewski
I have done basic NixOps deploy support for CloudSigma:
*
https://github.com/kamilchm/nixpkgs/commit/a64c343cd4baa07fea1bcac422a4eaa9fb2f86d9
*
https://github.com/kamilchm/nixops/commit/c2ec202f6b9a1bd488fa27abf3c218241b37b5d5

But it's just a PoC.

Best regards,
Kamil

2016-12-12 10:31 GMT+01:00 Nathan Bijnens :

> I have used Vultr, but you first need to create an image, see:
> https://www.vultr.com/docs/install-nixos-on-vultr
>
> You can also use NixOS on Azure and Amazon AWS, ideally using NixOps...
>
> Best regards,
>   Nathan
>
>
> On Mon, Dec 12, 2016 at 9:37 AM Azul  wrote:
>
> Hey there,
>
> I use a set of really cheap OVH vps for a number of clustered apps
> (consul, zookeeper and other stuff), however since OVH do not provide a
> nixos KVM image I have deployed those on other OSs.
> Now I would like to move those apps to nixos and just have one single set
> of code to maintain, for that I just need some cheap vps provider providing
> nixos instances.
>
> What is out there that you have used ?
> ___
> 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


Re: [Nix-dev] Nixos vps

2016-12-12 Thread Nathan Bijnens
I have used Vultr, but you first need to create an image, see:
https://www.vultr.com/docs/install-nixos-on-vultr

You can also use NixOS on Azure and Amazon AWS, ideally using NixOps...

Best regards,
  Nathan


On Mon, Dec 12, 2016 at 9:37 AM Azul  wrote:

Hey there,

I use a set of really cheap OVH vps for a number of clustered apps (consul,
zookeeper and other stuff), however since OVH do not provide a nixos KVM
image I have deployed those on other OSs.
Now I would like to move those apps to nixos and just have one single set
of code to maintain, for that I just need some cheap vps provider providing
nixos instances.

What is out there that you have used ?
___
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] Nixos vps

2016-12-12 Thread Azul
Thanks I have used your steps on a kimsufi box, but really looking for
something that gives me nixos out of the box.

On 12 Dec 2016 9:05 am, "Augustin Borsu"  wrote:

> You can install nixos on ovh vps, its just a bit more work since you have
> to do it yourself from the resuce os.
> I documented the process here
> 
> (it might be a bit outdated as I did it over a year ago but so far I
> haven't had a single issue).
> Might not be worth it if you want to deploy multiple server though.
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev