Re: [Nix-dev] Trying to implement quicksort in nix...

2016-04-14 Thread Eric Sagnes
> Maybe this should be added to the standard library? There is a sort function in the builtins [1], and one in Nix in the list functions [2]. [1] http://nixos.org/nix/manual/#ssec-builtins [2] https://github.com/NixOS/nixpkgs/blob/master/lib/lists.nix#L298 On Fri, Apr 15, 2016 at 02:53:49PM +100

Re: [Nix-dev] Trying to implement quicksort in nix...

2016-04-14 Thread Roger Qiu
Maybe this should be added to the standard library? On 15/04/2016 12:36 PM, "Eric Sagnes" wrote: > Sorry, I just noticed that my example is wrong because it is missing > recursion. > The `in low ++ [x] ++ high;` should be `in qs low ++ [x] ++ qs high;`. > > For fun, I added it to rosetta code [1]

Re: [Nix-dev] Trying to implement quicksort in nix...

2016-04-14 Thread Eric Sagnes
Sorry, I just noticed that my example is wrong because it is missing recursion. The `in low ++ [x] ++ high;` should be `in qs low ++ [x] ++ qs high;`. For fun, I added it to rosetta code [1] :) [1] http://rosettacode.org/wiki/Sorting_algorithms/Quicksort#Nix On Wed, Apr 13, 2016 at 04:01:59PM +

[Nix-dev] problems installing nixos under virtualbox: '/run/user': No such file or directory

2016-04-14 Thread Scott Parish
Repro steps: + downloaded nixos-minimal-16.03.581.e409886-x86_64-linux.iso + booted off it under virtualbox with 2048G memory, 25G vdi + fdisk /dev/sda: partition 1: type 83, 20G; partition 2: type 82, 5G + mkfs.ext4 -L nixos /dev/sda1 + mkswap -L swap /dev/sda2 + swapon /dev/sda2 + mount /dev/disk

Re: [Nix-dev] Two libGL installed at the same time

2016-04-14 Thread Vladimír Čunát
Hi. On 04/14/2016 01:38 PM, Bruno d'Arcangeli wrote: > On Arch, i can't install two libGL (one for nvidia and one for intel). > But it is possible with gentoo (with eselect opengl set x). > Is it possible with nixos? The word "install" is a bit tricky around Nix(OS). What you want most likely won

Re: [Nix-dev] runuser from utillinux not working.

2016-04-14 Thread zimbatm
Hi, Is the setuid flag set ? Suid programs are special in nixos so it's possible runuser didn't get classified properly. On Thu, 14 Apr 2016 03:03 Kevin Cox, wrote: > Hello, > > I was trying to use runuser from utillinux to run a process as another > user but ran into a problem. Running the co

[Nix-dev] Two libGL installed at the same time

2016-04-14 Thread Bruno d'Arcangeli
Hi all, I'm new to NixOS. Actually, i'm testing it with VirtualBox. Appear to be really great. I've got a "gamer" laptop with optimus. I don't want to use bumblebee as it is very slow. I use mainly the nvidia gpu. My main software is Blender. But when i render final image, i really prefer to use

Re: [Nix-dev] Manual outdated, too terse, lacking correct step-by-step instructions.

2016-04-14 Thread ben...@gmail.com
People are eager to fix bugs in the manual, but it would be a lot more helpful if you could describe specifically what you've run into. I'm sorry that you had a bad experience with NixOS, but your message is not particularly constructive as it stands. On Thu, Apr 14, 2016 at 2:32 AM john delport

Re: [Nix-dev] Manual outdated, too terse, lacking correct step-by-step instructions.

2016-04-14 Thread Arseniy Seroka
What is not correct or outdated in the manual? -- Sincerely, Arseniy Seroka On 14 April 2016 12:32:54 john delport wrote: I have tried umpteen times to install nixos and every bloody time I recieve errors. It really is very upsetting when the method of "KISS", KEEP IT SIMPLE STUPID, is ign

Re: [Nix-dev] few questions before migrating from Debian…

2016-04-14 Thread Roger Qiu
ZFS still requires separate /boot. Actually this depends on your boot loader, not ZFS. So if you find a better boot loader that can run ZFS, then you won't need a separate /boot. If you use UEFI, you'll need a separate ESP partition anyway, which you can use as your /boot if you are only using UEFI

[Nix-dev] Manual outdated, too terse, lacking correct step-by-step instructions.

2016-04-14 Thread john delport
I have tried umpteen times to install nixos and every bloody time I recieve errors. It really is very upsetting when the method of "KISS", KEEP IT SIMPLE STUPID, is ignored. I have installed over 150 different linux versions and flavours with a 98% success rate. Can you please revise your manual w