Re: [Nix-dev] 5 somewhat related questions

2017-06-26 Thread Roger Qiu
Oh I wrote a blog post before on the usage of nix env and nix path and using a custom nixpkgs clone for reproducible nix env and configuration.nix. You may find it useful: http://matrix.ai/2017/03/13/intro-to-nix-channels-and-reproducible-nixos-environment/ On 26 Jun 2017 5:59 PM, "Klaas van Schel

Re: [Nix-dev] conflicting packages / priority values

2017-06-17 Thread Roger Qiu
t;$out"; mv "$out/bin/git" > "$out/bin/gitB". > > On 17 June 2017 at 03:14, Roger Qiu wrote: > >> I wonder in other programming languages, name clashes are usually >> resolved through aliasing. Would it be possible for nix to install packages >&g

Re: [Nix-dev] conflicting packages / priority values

2017-06-16 Thread Roger Qiu
I wonder in other programming languages, name clashes are usually resolved through aliasing. Would it be possible for nix to install packages while aliasing their outputs to a different name to avoid clashes like this? On 17 Jun 2017 09:07, "Roni Choudhury" wrote: > From time to time I see an er

[Nix-commits] [NixOS/nixpkgs] 1b6176: gnupg module: Added extra and browser sockets (#26...

2017-06-15 Thread Roger Qiu
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 1b6176e45b05cbb89cac49359ba15a15c9187f68 https://github.com/NixOS/nixpkgs/commit/1b6176e45b05cbb89cac49359ba15a15c9187f68 Author: Roger Qiu Date: 2017-06-15 (Thu, 15 Jun 2017) Changed paths: M

Re: [Nix-dev] Polkit action files installed via nix-env don't appear to be recognised by Polkit/Pkexec/Pkaction

2017-05-31 Thread Roger Qiu
Are you suggesting overriding the derivation during package build of polkit? Thanks, Roger On 31/05/2017 5:35 PM, Linus Heckemann wrote: On 31/05/17 07:47, Roger Qiu wrote: Yea that seems right, allowing users to nix-env install things, everything must be unprivileged, allowing the usage of suc

Re: [Nix-dev] Polkit action files installed via nix-env don't appear to be recognised by Polkit/Pkexec/Pkaction

2017-05-30 Thread Roger Qiu
about it? Thanks, Roger On 31/05/2017 4:34 PM, Bjørn Forsman wrote: On 31 May 2017 at 07:44, Roger Qiu wrote: Hi all, Normally a polkit action file on a non-NixOS system would be installed in /usr/share/polkit-1/actions. On NixOS this location is instead at /run/current-system/sw/share/polkit-1

[Nix-dev] Polkit action files installed via nix-env don't appear to be recognised by Polkit/Pkexec/Pkaction

2017-05-30 Thread Roger Qiu
Hi all, Normally a polkit action file on a non-NixOS system would be installed in /usr/share/polkit-1/actions. On NixOS this location is instead at /run/current-system/sw/share/polkit-1/actions. The action files stored here are recognised by polkit, which can be demonstrated by running `pkact

Re: [Nix-dev] The .nixpkgs/config.nix file and user configuration

2017-05-03 Thread Roger Qiu
Here's some links for reference: * https://github.com/NixOS/nixpkgs/issues/1750 * https://github.com/sheenobu/nix-home * http://sandervanderburg.blogspot.com.au/2013/09/managing-user-environments-with-nix.html * https://www.reddit.com/r/NixOS/comments/5hd8ok/how_to_handle_nixos_and_i3_confi

[Nix-dev] Xrandrheads PR

2017-04-23 Thread Roger Qiu
Hi all, I've had this PR open for about 6 months: https://github.com/NixOS/nixpkgs/pull/15353 It allows once to specify per-monitor configuration using xrandrHeads. Like setting which monitor is primary, and changing the layout of monitors. It should be ready for a merge, and I would prefer

Re: [Nix-dev] Managing /home during system activation

2017-04-15 Thread Roger Qiu
Biggest problem is with how secrets are dealt with. Also that you're tieing your home config with system config, which doesn't work well for a multi-user system. On 16/04/2017 3:37 AM, "Peter Jones" wrote: > I'd like to manage files in my home directory during system activation. > Sort of like ni

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-21 Thread Roger Qiu
https://nixos.org/patchelf.html On 22/03/2017 9:42 AM, "Azul" wrote: > is there a simple way to just run binaries in nixos ? > > stuff like go binaries or other bits and bobs ? > > > ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, > interpreter /lib64/ld-linux-x86-64.so.2

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-21 Thread Roger Qiu
Replace the interpreter path. But there might be dependencies (try ldd) that it relies on that you also need to substitute. On 22/03/2017 9:42 AM, "Azul" wrote: > is there a simple way to just run binaries in nixos ? > > stuff like go binaries or other bits and bobs ? > > > ELF 64-bit LSB executa

Re: [Nix-dev] Why having releases if you break things in it often

2017-02-10 Thread Roger Qiu
Hey, I'd suggest for you to not use channels. I don't. Pin your nixpkgs to a commit hash. And upgrade when you want to/need to. This should be the recommended way IMHO. On 11/02/2017 10:07 AM, "Stefan Huchler" wrote: > Hello, > > I start to get frustrated again, the documentation of nixos is not

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Roger Qiu
When I exported a docker image to take look at what it is, it was also just a compressed set of tar'ed file trees. On 08/02/2017 7:46 AM, "Arnold Krille" wrote: > On Mon, 6 Feb 2017 18:33:19 -0600 Matthew Bauer > wrote: > > GitHub page: https://github.com/matthewbauer/nix-bundle > > > > I just w

Re: [Nix-dev] PCI Expresscard not working under NixOS

2017-02-06 Thread Roger Qiu
christoph.sen...@googlemail.com> wrote: > Hello. > > On 06.02.2017 06:36, Roger Qiu wrote: > >> When you plug something in, the kernel log should show something. If it >> doesn't then the kernel doesn't know about it, nothing in the userspace >> can help. >> &g

Re: [Nix-dev] PCI Expresscard not working under NixOS

2017-02-05 Thread Roger Qiu
When you plug something in, the kernel log should show something. If it doesn't then the kernel doesn't know about it, nothing in the userspace can help. Make sure you're running those commands before you plug the usb in. Also I used to have faulty usb cables, but even then the kernel showed some

Re: [Nix-dev] nixpkgs > 100k commits

2017-02-04 Thread Roger Qiu
Awesome! Although if it ever becomes an issue, we could look into GVFS (git virtual filesystem) released by Microsoft. On 05/02/2017 1:20 AM, "Matthias Beyer" wrote: > On 04-02-2017 01:06:19, Oliver Charles wrote: > > Bas van Dijk writes: > > > > > Dear all, > > > > > > FYI the nixpkgs repositor

Re: [Nix-dev] Fwd: Grub problem: external pointer tables not supported

2017-01-24 Thread Roger Qiu
t; btw, just to clarify my setup, currently I have /boot and /nix/store on > the same zfs volume and works, looks like only one directory is affected by > hardlinks/too many files issue. > > Thanks, > Tom > > 2017-01-24 3:43 GMT+00:00 Roger Qiu : > >> Btw what is the `@

Re: [Nix-dev] Grub problem: external pointer tables not supported

2017-01-24 Thread Roger Qiu
e). > > nix-collect-garbage -d didn't help. > > I solved the problem by using boot.loader.grub.copyKernels = true; > > Kernels were copied to the same volume but to /boot where there is smaller > number of files and worked perfectly. > > > 2017-01-23 16:44 GMT+0

Re: [Nix-dev] Grub problem: external pointer tables not supported

2017-01-23 Thread Roger Qiu
Hey, Changing nixos generations won't affect the grub boot partition, that only changes which nixos kernel and initramfs image gets booted. This looks like an error in the Grub partition. Maybe you recently updated it or changed it, or the partition got corrupted. This is why other operating sys

Re: [Nix-dev] List of companies using NixOS

2016-12-08 Thread Roger Qiu
https://matrix.ai/ is using NixOS as a build system. On 21/11/2016 5:56 AM, "zimbatm" wrote: > Hi all, > > I am collecting a list of companies that are using NixOS. The idea is to > encourage adoption by validation. > > The list is over here: > https://www.reddit.com/r/NixOS/comments/5dz8fp/list_

Re: [Nix-dev] Proposal: adding fetchapt support to nixpkgs

2016-11-12 Thread Roger Qiu
I think what we need is a bot that will autosubmit PRs to bump new versions by tracking some commonly updated widely used applications like chromium. This shouldn't be too difficult. On 11/11/2016 11:34 PM, "Profpatsch" wrote: > On 16-10-25 04:42am, Chuan-kai Lin wrote: > > Adding support for fet

[Nix-dev] What happens to Polkit action files when installing a package into a user-profile

2016-11-04 Thread Roger Qiu
Hi Nix Devs, I came across a question when discussing Polkit with a colleague. It's possible to create an action file for pkexec, that allows execution of another program with superuser privileges using the pkexec annotation: ``` yes yes yes key="or

Re: [Nix-dev] Custom libc

2016-10-21 Thread Roger Qiu
Perhaps a custom stdenv then? Or is there an override function for stdenv? On 13/10/2016 10:01 AM, "Dmitry Kalinkin" wrote: > packageOverrides don’t override anything within stdenv > > > On 12 Oct 2016, at 18:28, Tomasz Czyż wrote: > > > > Nikita, how do you override the attributes? > > > > Did

Re: [Nix-dev] NixOS 16.09 not cleaning /boot/EFI/nixos

2016-10-07 Thread Roger Qiu
To clarify, I mean a nixos rebuild that changes the efi in some way. On 28/09/2016 8:32 PM, "Roger Qiu" wrote: > I discovered a while back that NixOS rebuild is only time boot efi gets > cleaned. But here's a question. Does it delete then add the new efi, or > does it add

Re: [Nix-dev] NixOS 16.09 not cleaning /boot/EFI/nixos

2016-09-28 Thread Roger Qiu
I discovered a while back that NixOS rebuild is only time boot efi gets cleaned. But here's a question. Does it delete then add the new efi, or does it add the new efi then delete? The former would mean that even if your efi is full, it will work, but raises the possibility that if a rebuild gets i

[Nix-dev] Packaging up a prebuilt software that needs fonts

2016-09-26 Thread Roger Qiu
Hi, I'm trying to package up https://code-industry.net/masterpdfeditor/ for Linux. I've managed to use patchelf to set the interpreter and rpath. The application is now launching, and everything seems to work except text insertion. When I try it, it complains about fonts not being able to be

Re: [Nix-dev] Sudoers

2016-09-15 Thread Roger Qiu
I see that NixOS distributes vanilla sudo without any compile time shenanigans then. Thanks, Roger On 15/09/2016 9:09 PM, obadz wrote: On Thu, Sep 15, 2016 at 10:31 AM, Roger Qiu <mailto:roger@matrix.ai>> wrote: I noticed that unlike many other distributions sudo propagates

[Nix-dev] Sudoers

2016-09-15 Thread Roger Qiu
Hi, I was going through the sudoers configuration and checking how it works. I noticed that unlike many other distributions sudo propagates many environment variables that would be cleared: ``` echo "$LD_LIBRARY_PATH" && sudo sh -c 'echo $LD_LIBRARY_PATH' echo "$PATH" && sudo sh -c 'echo $P

Re: [Nix-dev] NixOps usage survey.

2016-09-12 Thread Roger Qiu
Pinning a commit hash is definitely 1 step to reproducibility. But another step is that all build inputs and upstream sources must also be content addressed and available. One challenge with this security updates. On 12/09/2016 7:05 PM, "Tobias Pflug" wrote: > If I may just jump in with a questio

Re: [Nix-dev] Build a default.nix for a project with node.js and python dependencies

2016-09-07 Thread Roger Qiu
Is there a list of projects that go from other package managers to nix? On 06/09/2016 11:57 AM, "Rok Garbas" wrote: > to generate nix expressions from pip's requirements.txt file i created > pypi2nix[1] which should get you very close. > > [1] https://github.com/garbas/pypi2nix > > On Mon, Sep 5,

Re: [Nix-dev] London NixOs User Group - NIXOS_LUSTRATE talk

2016-09-01 Thread Roger Qiu
I'm in Australia. On 31/08/2016 1:36 PM, "Raahul Kumar" wrote: > Hardly any Aussie Nixos users either. > > On Wed, Aug 31, 2016 at 12:32 PM, Graham Christensen > wrote: > >> Will there be streaming? >> >> Signed, >> Lonely USA NixOS User >> >> On Aug 30, 2016, at 5:34 PM, zimbatm wrote: >> >> H

Re: [Nix-dev] 6 month C4 adoption period

2016-08-30 Thread Roger Qiu
It would be useful if those revision hashes were paired with a date. On 30/08/2016 7:34 PM, Shea Levy wrote: Hi Stewart, If you go to http://hydra.nixos.org/job/nixos/release-16.03/nixpkgs.rustUnstable.rustc.x86_64-linux/latest/eval#tabs-inputs, you can see the nixpkgs revision of the latest s

Re: [Nix-dev] How to install specific version of a package?

2016-08-16 Thread Roger Qiu
package may not be available in the binary cache, and it may result in a from source build. At the same time, we still don't have a content-addressable upstream package sources, so I'm looking into fixing that with IPFS. On 13/08/2016 6:06 AM, Nick Sabalausky wrote: On 08/12/2016 02:58

Re: [Nix-dev] Why nginx config isn't placed into /etc/nginx/nginx.conf?

2016-08-12 Thread Roger Qiu
Fascinating. Have you heard of CFEngine's "Convergent Fixedpoint" idea? https://en.wikipedia.org/wiki/CFEngine#Convergence On 11/08/2016 7:21 PM, Christian Kauhaus wrote: Am 10.08.2016 um 00:29 schrieb Arnold Krille: On Tue, 9 Aug 2016 19:54:10 +0100 Luca Bruno wrote: Except that the existi

Re: [Nix-dev] Building with default.nix

2016-08-12 Thread Roger Qiu
I'd recommend to fix the content address of your nixpkgs in order to make your default.nix reproducible. Right now you're relying on an environment variable that determines the revision of nixpkgs. On 09/08/2016 8:53 PM, "Rodney Lorrimar" wrote: > Hello nix-dev, > > I was wondering, what is the b

Re: [Nix-dev] Two declarative ways to install a package?

2016-08-12 Thread Roger Qiu
For example: There are both nginx package and nginx service. The package part is just the package management aspect of Nix, while the nginx service is the service management (configuration management) aspect of Nix. However if you use the service, then as a dependency, package is usually installed.

Re: [Nix-dev] How to install specific version of a package?

2016-08-11 Thread Roger Qiu
Nix is based on content addressing. To install a specific version of a package, just pick a version, fix the content address, and install it! However nixpkgs is a community effort in creating a standard default package set. This means the community decides to write nix expressions for the versions

Re: [Nix-dev] multiple versions of the same software? / collisions

2016-08-04 Thread Roger Qiu
That's a problem though, there shouldn't be much of a problem of having both versions of the package available in a single environment, as long as the second package is namespaced appropriately, in this case it's just a shell alias. This should be possible with Nix. There are situations where i

Re: [Nix-dev] installing a locally modified package / undefined variable in maintainers

2016-08-03 Thread Roger Qiu
Try removing `simons`. On 03/08/2016 11:56 PM, "Roger Qiu" wrote: > It appears `simons` is no longer defined? > On 03/08/2016 11:52 PM, "Roland Koebler" > wrote: > >> Hi again, >> >> I'm using Nix on Debian 8 (and I really like Nix,

Re: [Nix-dev] installing a locally modified package / undefined variable in maintainers

2016-08-03 Thread Roger Qiu
It appears `simons` is no longer defined? On 03/08/2016 11:52 PM, "Roland Koebler" wrote: > Hi again, > > I'm using Nix on Debian 8 (and I really like Nix, thanks!). > For testing, I'm trying to install several different Python3-versions. > > In addition to Python 3.4 and 3.5 (as described in my

Re: [Nix-dev] multiple versions of the same software? / collisions

2016-08-03 Thread Roger Qiu
It appears that the flag setting only works on already installed packages. Also https://mobile.twitter.com/NixOsTips/status/488789048471719936 Also I'm not sure, but even if there are name collisions in the user environment, it should still be possible to install both packages but only use one of

Re: [Nix-dev] Too many open issues

2016-07-22 Thread Roger Qiu
What about things that aren't necessarily small fixable bugs. Some projects have long discussions about design or philosophy or some major architecting. Or a bug that is pending somebody coming up with a good solution (like for example ZFS's encryption issue which was open for years). Will peop

Re: [Nix-dev] Specifying particular firmware

2016-07-19 Thread Roger Qiu
In what situations should we be using `enableAllFirmware`? Will something let us know (like something breaking)? Other distro installations appear to detect when non-free firmware is needed. On 19/07/2016 6:40 AM, Vladimír Čunát wrote: On 07/18/2016 07:35 PM, Matthew Robbetts wrote: I can’t

Re: [Nix-dev] Packaging free software that costs money

2016-07-06 Thread Roger Qiu
I'm interested. Free and proprietary software should be installed in the same way in my opinion. On 07/07/2016 12:27 AM, "Moritz Bartl" wrote: > On 07/06/2016 03:32 PM, Profpatsch wrote: > > On 16-07-06 10:16pm, Roger Qiu wrote: > >> I've been thinking abou

Re: [Nix-dev] Packaging free software that costs money

2016-07-06 Thread Roger Qiu
I've been thinking about the mechanics of FOSS app stores. If you don't want to handle the payments, you need to implement a kind of payment-authentication, where the principle is the same as dealing with private packages. Instead the key being used is a key that is derived from a successful pa

Re: [Nix-dev] Intermittent Blank Screen upon Opening Laptop Lid

2016-07-06 Thread Roger Qiu
It does seem like a lot of people are experiencing this problem (on NixOS and beyond). I'll have to perform some experiments and play around with it to see how I can replicate it deterministically. On 5/07/2016 1:15 PM, Ruben Astudillo wrote: I got the same problem. I think I know the conditi

Re: [Nix-dev] Intermittent Blank Screen upon Opening Laptop Lid

2016-07-03 Thread Roger Qiu
Hi Vladimir, What's the display detect button? I tried switching to text terminals whenever this happens, and while something's happening with the disk (disk indicator light), the screen's still blank. Thanks, Roger On 2/07/2016 5:54 AM, Vladimír Čunát wrote: On 07/01/2016

Re: [Nix-dev] Intermittent Blank Screen upon Opening Laptop Lid

2016-07-01 Thread Roger Qiu
en it. I don't actually know what's happening here. But the screen goes blank like situation 1, but of course this is one with the intermittent persistent blank screen. Thanks, Roger On 1/07/2016 11:55 PM, Roger Qiu wrote: I should be clear, that right after the logs that I posted is

Re: [Nix-dev] Intermittent Blank Screen upon Opening Laptop Lid

2016-07-01 Thread Roger Qiu
e the lid. This is because it's pretty much vanilla NixOS. I didn't create any scripts for lid actions. On 1/07/2016 11:49 PM, Roger Qiu wrote: I found something interesting on my previous boot logs, since I had to force shutdown. The error is follows (from journalctl -b -1): ```

Re: [Nix-dev] Intermittent Blank Screen upon Opening Laptop Lid

2016-07-01 Thread Roger Qiu
: [] ? system_call_fastpath+0x12/0x71 ``` Looks like something to do with stalling and CPU 7 and NVIDIA? Thanks, Roger On 1/07/2016 11:15 PM, Bjørn Forsman wrote: On 1 July 2016 at 15:10, Roger Qiu wrote: Hi Nixers, I discovered this problem a while ago, basically upon closing the lid and

[Nix-dev] Intermittent Blank Screen upon Opening Laptop Lid

2016-07-01 Thread Roger Qiu
Hi Nixers, I discovered this problem a while ago, basically upon closing the lid and reopening it after 10 min, the screen stays blank, and I can't do anything. Even switching to tty1 doesn't work. This doesn't always happen. And when I close the lid and reopen after a few seconds, it usuall

Re: [Nix-dev] Umask Setting in NixOS

2016-06-26 Thread Roger Qiu
initialization scripts, like programs.bash.interactiveShellInit = '' umask ... ''; Or, for services, in systemd service options / scripts 2016-06-22 17:21 GMT+03:00 Roger Qiu : Hi, In a new installation of NixOS, the umask command gives me back `022`. I was wondering

[Nix-dev] Umask Setting in NixOS

2016-06-22 Thread Roger Qiu
Hi, In a new installation of NixOS, the umask command gives me back `022`. I was wondering where is this being set? The `/etc/login.defs` say `UMASK 077` but that doesn't match what the command is giving. Thanks, Roger -- Founder of Matrix AI https://matrix.ai/ +61420925975

Re: [Nix-dev] Using string as path to eg. builtins.readFile

2016-06-21 Thread Roger Qiu
Thanks, even if that doesn't go into the docs, I'm putting that into a github gist. On 21/06/2016 5:44 PM, Bas van Dijk wrote: Hi Erik, Do note that I went through the same trouble as you figuring out how to apply builtins.readFile to a dynamically constructed path. Maybe we can document this

Re: [Nix-dev] Where are the builtins function declarations?

2016-06-19 Thread Roger Qiu
A really easy way to understand the builtins is to use the nix-repl. The tab completion is really nice. On 20/06/2016 12:11 AM, "4levels" <4lev...@gmail.com> wrote: > Lol, that shows you right away how much I understand of both python and > C++! > > On Sun, Jun 19, 2016 at 4:08 PM Vladimír Čunát

Re: [Nix-dev] PR Reviewers

2016-05-19 Thread Roger Qiu
Thanks I saw. On 19/05/2016 5:24 PM, Vladimír Čunát wrote: > On 05/19/2016 08:55 AM, Roger Qiu wrote: >> If someone submits a completely new package, what is the review >> procedure and timeline? > I don't think we really have any such processes, at least not wri

[Nix-dev] PR Reviewers

2016-05-18 Thread Roger Qiu
Hello, If someone submits a completely new package, what is the review procedure and timeline? I just submitted 2 packages, but because it's completely new, there's no notification to existing maintainers from the PR bot. Thanks, Roger -- Founder of Matrix AI https://matrix.ai/ +61420925975

Re: [Nix-dev] Source URL breakage – please can we improve the determinism

2016-05-07 Thread Roger Qiu
Its definitely annoying. There's discussion about it involving ipfs. One stopgap solution is to rollback just for only that package. You can do that with nix-env -f on a tar.gz archive of nixpkgs from a commit hash on github. On 08/05/2016 10:19 AM, "J. R. Haigh" wrote: > Dear Nix project leade

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

2016-04-20 Thread Roger Qiu
UEFI requires a separate ESP partition anyway. Unless you plan on running on FAT32. On 16/04/2016 9:35 PM, "Saša Janiška" wrote: > Roger Qiu writes: > > > Will you be using UEFI? > > Yes, on my single-disk netbook…any gotcha in regard? > > > Sincerely,

Re: [Nix-dev] Nix-like npm replacement (NodeJS)

2016-04-20 Thread Roger Qiu
Yep and it (along with nixpkgs and git) is one of the few package managers that focus on content addressability. On 20/04/2016 7:50 PM, "Wout Mertens" wrote: > I thought this would be interesting for some people on this list: > > http://gugel.io/ied/ : > > Under the hood, ied maintains an "object

Re: [Nix-dev] PolicyKit timeout after upgrade to 16.03

2016-04-18 Thread Roger Qiu
r in this nasty issue. Maybe it is related to the use of > nixos-16.03-small instead of nixos-16.03. But since I'm using nixos for > servers only, without the need for a desktop environment, I was expecting > the small channel to be better.. > > Kind regards! > > Erik > &g

Re: [Nix-dev] Difference between Pkgs, Super and Self in this Snippet

2016-04-15 Thread Roger Qiu
How do _you_ use overridePackages? On 15/04/2016 6:10 PM, Profpatsch wrote: > On 16-04-13 06:56pm, Nicolas Pierron wrote: >> On Mon, Apr 11, 2016 at 7:34 AM, Roger Qiu wrote: >>> ``` >>> { pkgs }: { # pkgs is the fully configured packages, after overrides >>&g

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

Re: [Nix-dev] PolicyKit timeout after upgrade to 16.03

2016-04-13 Thread Roger Qiu
Have you tried rolling back to 15.09, does it still happen? On 13/04/2016 4:47 PM, 4levels wrote: Hi Nix'ers, No one? Im I the only one who's experiencing this? This timeout still occurs and makes every call to systemctl at least 30 seconds slower, pretty annoying actually.. Hope someone wi

[Nix-dev] Difference between Pkgs, Super and Self in this Snippet

2016-04-11 Thread Roger Qiu
Hi, Here's a snippet of config.nix. ``` { pkgs }: { # pkgs is the fully configured packages, after overrides packageOverrides = super: let self = super.pkgs; in rec { # super is without overrides, self is with # ... overrides go here ... }; } ``` While I understand that `super` is th

Re: [Nix-dev] Did we just get windows support for free?

2016-04-06 Thread Roger Qiu
What's this hidden switch? On 31/03/2016 7:48 AM, "Teo Klestrup Röijezon" wrote: > Yes, but there's some hidden switch you need to flip in order to allow it. > > On 30 March 2016 at 22:46, stewart mackenzie wrote: > >> Does windows support symlinks in non-administrator mode? >> >> __

Re: [Nix-dev] Displaying package parameters

2016-03-21 Thread Roger Qiu
with nix-repl with a few nice > functions). Part of this has been proposed here: > https://github.com/NixOS/nixpkgs/pull/13890, I will wait until this is > decided to maybe think about it. > > btw @Roger Qiu: did you manage to get the demo working in the meantime? > > [1] >

Re: [Nix-dev] Displaying package parameters

2016-03-21 Thread Roger Qiu
Just wanted to ask, is this package search enhanced with showing package parameters planned to be added to the standard command line Nix query tools? Or if it's already available and I haven't found it. On 9/03/2016 2:46 AM, Fabian Schmitthenner wrote: > I've added a few features: > > - Search i

Re: [Nix-dev] Amazon EC2 rebuild switch causes kernel panic

2016-03-14 Thread Roger Qiu
What's happening is the transition from stage 1 booting to stage 2 booting is failing. The error reported is that the init script that is be executed once switch_root is executed is non existent. Which could mean your initrd is corrupted or the build failed for some reason or some other config prob

Re: [Nix-dev] When calling nix-store --verify-path - How to know the hash database is not corrupt?

2016-03-09 Thread Roger Qiu
The database you're referring to is the nixpkgs repository/channel right? On 10/03/2016 1:59 AM, "Matthias Beyer" wrote: > Hi, > > I have a question. When calling `nix-store --verify-path > /nix/store/something`, > it verifies that the contents of the store path haven't been altered by an > attac

Re: [Nix-dev] Open source team messaging: mattermost

2016-03-08 Thread Roger Qiu
As a workaround you can use sameroom.io. I connect to the IRC from Slack there. On 09/03/2016 1:20 AM, "Wout Mertens" wrote: > That one requires action on the part of the user, unlike the newfangled > group chat tools, but ok. > > On Tue, Mar 8, 2016 at 3:16 PM Herwig Hochleitner > wrote: > >> 2

[Nix-dev] Understanding the Binary Cache

2016-03-02 Thread Roger Qiu
Hello everybody, There's a note on the wiki that says: > Note: When you ask Nix to install a package, it will first try to get it in pre-compiled form from a binary cache. By default, Nix will use the binary cache https://cache.nixos.org; it contains binaries for most packages in Nixpkgs. Onl

[Nix-dev] Small Channel Binaries

2016-02-28 Thread Roger Qiu
Hi all, If the small channels contain less binaries in the binary cache. Is there a way to find out which binaries are available in the small channel compared to the normal channel, and compare between them? -- Founder of Matrix AI https://matrix.ai/ +61420925975 _

Re: [Nix-dev] Fwd: Wiki is dead

2016-02-25 Thread Roger Qiu
Nobody has written the Nix/NixOS book yet. On 24/02/2016 11:14 AM, "Anderson Torres" wrote: > 2016-02-23 19:22 GMT-03:00 zimbatm : > > I started writing some docbook. Maybe I will get used to it but writing > > `foobar` is way more > painful > > that `* foobar` in markdown. Especially in writing

Re: [Nix-dev] network problems after upgrade

2016-02-15 Thread Roger Qiu
https://github.com/NixOS/nixpkgs/issues/12361 ? On 16/02/2016 6:15 PM, Máté Kovács wrote: Hi all, The latest `nixos-rebuild switch --upgrade` broke network connectivity. I don't use any networkmanager app, just /etc/wpa_supplicant.conf. How do I figure out what's going wrong here? Thanks, Ma

Re: [Nix-dev] Using Nix as the preferred package manager for a new language

2016-02-14 Thread Roger Qiu
There's some work on Nix on Windows: * https://nixos.org/wiki/Nix_on_Windows * https://ternaris.com/lab/nix-on-windows.html On 13/02/2016 12:01 AM, Philipp Hausmann wrote: Interestingly enough, we have some of the same questions for the Agda programming language. Currently, Agda doesn't really

Re: [Nix-dev] [erlang-questions] Erlang Package Manager

2016-02-14 Thread Roger Qiu
ut one packages in nixpkgs are taken from hex.pm <http://hex.pm> as this seem to be the most mature centralized package repo for Erlang. It also provides APIs which are handy to use in hex2nix conversion tool. Cheers, Gleb On Feb 15, 2016 6:58 AM, "Roger Qiu" <mailto:roge

Re: [Nix-dev] Prepending files to initrd

2016-01-30 Thread Roger Qiu
e initrds. > >> On Jan 30, 2016, at 5:26 AM, Roger Qiu wrote: >> >> Hi, >> >> There's an option called: `boot.initrd.prepend`. I tried to prepend a >> gzipped cpio archive containing 1 single file with no path. But I upon >> rebooting, I received a

[Nix-dev] Prepending files to initrd

2016-01-30 Thread Roger Qiu
Hi, There's an option called: `boot.initrd.prepend`. I tried to prepend a gzipped cpio archive containing 1 single file with no path. But I upon rebooting, I received a `Initramfs unpacking failed: junk in compressed archive`. Here was the steps I took: ``` pushd /boot cpio -o <<< "luks-key.i

[Nix-dev] Running `nixos-install` creates new generations inside `/mnt`

2016-01-30 Thread Roger Qiu
Hi, Since I was debugging a number of issues with my configuration on the live ISO, I was running `nixos-install` multiple times. Every time I did this, and the configuration change caused a change in the initrd, this resulted in a new generation. Eventually I ran out of `/boot` space (this wa

Re: [Nix-dev] Redirect SDDM/LightDM (X.0.log & .xsession-errors) to JournalCTL

2016-01-28 Thread Roger Qiu
GDM apparently does this: http://worldofgnome.org/in-gnome-3-12-systemd-will-track-xorg-logs/ But I'm not familiar with the source code. On 29/01/2016 6:07 AM, Tuomas Tynkkynen wrote: > 2016-01-28 20:47 GMT+02:00 Vladimír Čunát : >> On 01/28/2016 12:21 PM, Roger Qiu wrote: >&g

Re: [Nix-dev] Redirect SDDM/LightDM (X.0.log & .xsession-errors) to JournalCTL

2016-01-28 Thread Roger Qiu
I'll look into it and submit a PR. But any ideas on how to redirect X.0.log? On 28/01/2016 4:40 PM, Vladimír Čunát wrote: > On 01/28/2016 06:29 AM, Roger Qiu wrote: >> I see, do I need to fork nixpkgs to override that bash fragment? > Why not create an option to also log to jo

Re: [Nix-dev] Redirect SDDM/LightDM (X.0.log & .xsession-errors) to JournalCTL

2016-01-27 Thread Roger Qiu
I see, do I need to fork nixpkgs to override that bash fragment? On 28/01/2016 4:26 PM, Vladimír Čunát wrote: > On 01/28/2016 04:34 AM, Roger Qiu wrote: >> Are you referring to the ~/.xsession-errors? This is a text file >> containing the error logs of X applications, where would

Re: [Nix-dev] Redirect SDDM/LightDM (X.0.log & .xsession-errors) to JournalCTL

2016-01-27 Thread Roger Qiu
like: |#!/usr/bin/env bash | |exec &> | logger & | |# the usual stuff | On Tue, 26 Jan 2016 at 05:01 Roger Qiu <mailto:roger@matrix.ai>> wrote: Hi, How does one redirect the logs (X.0.log) and (~/.xsession-errors) to journalctl? Apparently GDM (http://

[Nix-dev] Redirect SDDM/LightDM (X.0.log & .xsession-errors) to JournalCTL

2016-01-25 Thread Roger Qiu
Hi, How does one redirect the logs (X.0.log) and (~/.xsession-errors) to journalctl? Apparently GDM (http://worldofgnome.org/in-gnome-3-12-systemd-will-track-xorg-logs/) now does this, but SDDM doesn't. I would prefer to be able to centalise all logs into journalctl. Thanks, Roger -- Found

Re: [Nix-dev] Flattening pkgs tree in nixpkgs/pkgs

2016-01-11 Thread Roger Qiu
+1 on the meta tags concept if we had a new nix tool that wrapped around find or used a cached index that could show all packages related to a particular tag. The cached index could be auto generated on each release or each commit? Or just generated at installation when a user installs Nix. Commit

Re: [Nix-dev] hermetically sealed nixpkgs

2015-12-15 Thread Roger Qiu
There's some work on integrating Nix and IPFS here: https://github.com/ipfs/notes/issues/51 On 7/12/2015 3:44 PM, Chris Forno wrote: How would you go about (pre)fetching every source in the nixpkgs tree? How large would you estimate the result to be (number of archives/space on disk)? In the

Re: [Nix-dev] hermetically sealed nixpkgs

2015-12-15 Thread Roger Qiu
ources On Tue, Dec 15, 2015 at 11:59 AM, Roger Qiu <mailto:roger@polycademy.com>> wrote: Would you rather freeze the dependencies as part of whatever you're building, or have a persistent mirror (IPFS) of all packages that Nix ever makes available? On 7/12/2

Re: [Nix-dev] hermetically sealed nixpkgs

2015-12-15 Thread Roger Qiu
Would you rather freeze the dependencies as part of whatever you're building, or have a persistent mirror (IPFS) of all packages that Nix ever makes available? On 7/12/2015 3:44 PM, Chris Forno wrote: How would you go about (pre)fetching every source in the nixpkgs tree? How large would you es

[Nix-dev] Suspend to RAM on LiveCD

2015-12-15 Thread Roger Qiu
Does suspend to ram work on the LiveCD? I tried it with `systemctl suspend`, and upon resume I just a blank screen and the USB light isn't lighting up. -- Founder of Matrix AI http://matrix.ai/ +61420925975 ___ nix-dev mailing list nix-dev@lists.scie

Re: [Nix-dev] How to use a previous build from hydra-server

2015-12-15 Thread Roger Qiu
If there are multiple channels (custom channels included) available, how does Nix choose from which to install, and is there a way for us to pick a preference? On 08/12/2015 5:52 PM, "Teo Klestrup Röijezon" wrote: > You can import a package from a specific version of nixpkgs, independent > of the

Re: [Nix-dev] Mount Overflow TMP

2015-12-15 Thread Roger Qiu
Good question, we can test this inside Virtualbox. On 15/12/2015 3:21 AM, Eelco Dolstra wrote: > Hi, > > On 14/12/15 14:51, Roger Qiu wrote: > >> Does NixOS do the mount overflow tmp feature that exists on other >> distros (http://mancoosi.org/~abate/mountoverflowtmp).

[Nix-dev] Mount Overflow TMP

2015-12-14 Thread Roger Qiu
Does NixOS do the mount overflow tmp feature that exists on other distros (http://mancoosi.org/~abate/mountoverflowtmp). Apparently it can be disabled with `echo 'MINTMPKB=0' > /etc/default/mountoverflowtmp`. If so, why not have a NixOS option for this? -- Founder of Matrix AI http://matrix.ai

[Nix-dev] ZFS on TMP and dealing with missing mode mount option

2015-12-14 Thread Roger Qiu
Hi, ZFS doesn't have a mode option during mounting. See: https://github.com/zfsonlinux/zfs/issues/4101 If I need a filesystem mounted with 1777 permissions and sticky bit on boot, how can do that with ZFS and the NixOS fileSystems settings? The fileSystems settings has no option to run a post

Re: [Nix-dev] Publish All of Hackage

2015-12-02 Thread Roger Qiu
Having an immutable content addressable storage for packages will really help maintain legacy applications. I got bitten recently by NPM wiping out a package completely which was a deep dependency of a number of legacy dependencies. Some software just doesn't need to be updated for years. On 01/12/

Re: [Nix-dev] What does this output in my VM test mean?

2015-11-24 Thread Roger Qiu
That's for WiFi radio spectrum regulations. When I get connected, it then calls a particular country domain. On 24/11/2015 9:19 AM, Matthias Beyer wrote: Hi, in my VM test I get these lines over and over again after the VMs ran: client# [ 10.808191] cfg80211: Calling CRDA to update wor

Re: [Nix-dev] Real documentation, aka "Let's kill the wiki"

2015-11-19 Thread Roger Qiu
Can the manual be made as a gitbook with the chapters fleshed out better and made more user friendly? One part of the manual can be very fact based, another part can be story based. Kind of like the difference between documentation vs api documentation vs tutorials. I often find myself across 3 to

Re: [Nix-dev] Remote Installation

2015-11-05 Thread Roger Qiu
Try using Packer. You can take the liveCD ISO, and repack it as an image with SSH enabled on boot. On 6/11/2015 3:14 PM, Alex Brandt wrote: Hey, I know this isn't something that one normally does but how can I ensure that SSH is enabled and accessible from a live environment to perform a remot

  1   2   >