Re: [Nix-dev] Keeping nixpkgs up to date

2014-08-31 Thread Roger Qiu
Many other package systems are decentralised (Gems/Composer/PyPI/NPM). Why not make Nix packages decentralised? So that maintainers can maintain their own packages and update them at any time? This would speed up evolution of Nix packages. One problem to solve is how do we make sure that unresp

Re: [Nix-dev] "Package archeology" in nixpkgs

2014-08-31 Thread Roger Qiu
Can there be a better database rather than a text file? On 1/09/2014 4:04 AM, Michael Raskin wrote: >> On 31 August 2014 18:27, Michael Raskin <7c6f4...@mail.ru> wrote: >>> I'd say, though, that only name-based operations drop in performance >>> that way… >>> >>> Although for some strange reason w

Re: [Nix-dev] "Package archeology" in nixpkgs

2014-09-01 Thread Roger Qiu
The CI system can support this process, every time a new package is built, its then triggers a reindex and mutation of the database, which is then supplied via the channel. On 1/09/2014 7:22 PM, Vladimír C(unát wrote: On 09/01/2014 11:24 AM, Michael Raskin wrote: What triggers reindexing? I

Re: [Nix-dev] "Package archeology" in nixpkgs

2014-09-01 Thread Roger Qiu
I think the name and the attribute name could be named with better names, to prevent confusion. Perhaps a "label" and "path"/"fully qualified path". The name is just really used for fuzzy search which I believe is there for convenience for the operator. Like the difference between a search engi

Re: [Nix-dev] "Package archeology" in nixpkgs

2014-09-02 Thread Roger Qiu
But with a proper database implementation, perhaps it can do full text indexing on its description, or indexing on the names, and proper caching mechanisms as well. Why reinvent the wheel? On 1/09/2014 3:04 PM, Michael Raskin wrote: >> Can there be a better database rather than a text file? > T

Re: [Nix-dev] systemd in the long run: Revisiting How We Put Together Linux Systems (it's almost Nix...)

2014-09-02 Thread Roger Qiu
Based on Lennart's blog article, once systemd 215 rolls around, will Nix adapt its structure to take advantage of these systemd features? Although this does make Nix and Systemd much more coupled, which is fine by me if it makes the system easier to understand and more easier to control. On

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

2014-10-07 Thread Roger Qiu
So this command is sometimes not being ran? systemctl restart network-setup On 30/09/2014 6:14 PM, "Mateusz Kowalczyk" wrote: > 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

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

2014-10-07 Thread Roger Qiu
is removed. Alexander On Tue, Oct 7, 2014 at 2:39 PM, Roger Qiu <mailto:roger@polycademy.com>> wrote: So this command is sometimes not being ran? systemctl restart network-setup On 30/09/2014 6:14 PM, "Mateusz Kowalczyk" mailto:fuuze...@fuuzetsu.co.uk&g

Re: [Nix-dev] Proposal: Standard installation procedure

2014-10-21 Thread Roger Qiu
Can that nixpart be converted to something that uses nix-exec? It looks useful since I've been doing the initial setup with an initial boot script. On 21/10/2014 7:27 PM, "Domen Kožar" wrote: > > >> What I find missing is *creation* of the actual partitions, file systems >> etc. integrated into t

Re: [Nix-dev] NixOS 14.11 "Caterpillar" release schedule

2014-10-24 Thread Roger Qiu
I would suggest a document that solely focuses on the Nix language. I've read the excellent nix pills and the recent other tutorial on Nix on medium, but I think that having something direct on the document that goes into the Nix language deeply, the standard library, the nix-repl and build would b

[Nix-dev] OS Query

2014-10-29 Thread Roger Qiu
Hey all, Just wanted to show you guys Facebook's OS Query: https://code.facebook.com/posts/844436395567983/introducing-osquery/ It appeared on HN recently. As soon as I read it, I began thinking that one could actually use Nix as a datastore that you can query. In fact I think you can already

Re: [Nix-dev] Nix as a dotfiles manager

2014-12-02 Thread Roger Qiu
What if Nix could have a lens functionality? Check out http://augeas.net/ Then you could use lenses to manipulate the dot files or any config file from Nix. On 01/12/2014 9:28 PM, "Sergey Mironov" wrote: > Hi. I've adopted the following compromise solution: > 1) Add the file include/templatecfg.

Re: [Nix-dev] Nix as a dotfiles manager

2014-12-02 Thread Roger Qiu
mír Čunát wrote: On 12/01/2014 11:52 AM, Roger Qiu wrote: What if Nix could have a lens functionality? Check out http://augeas.net/ Then you could use lenses to manipulate the dot files or any config file from Nix. Yeah, lenses are great things, but in this case it would take lots of

Re: [Nix-dev] Breaking changes log

2014-12-18 Thread Roger Qiu
That looks good. Would this just be published on the repo or on the site? Are you planning to do the gentoo /news directory? I would prefer that the changelog isn't actually in the OS itself. Or if it is, then maybe an option in Nix that specifies whether to get the latest changelog or not.

Re: [Nix-dev] NixOS as dom0 for Xen

2014-12-20 Thread Roger Qiu
Hey Thomas, I'm interested in this area too. Have you looked at: https://nixos.org/wiki/NixOS_and_Xen Nothing there says Xen was deactivated? Where did you find that info? Thanks, Roger On 21/12/2014 7:37 AM, Thomas Strobel wrote: > Hi! > > I plan to use NixOS as dom0 for Xen. There is an old,

Re: [Nix-dev] Dataflow

2014-12-25 Thread Roger Qiu
Given that the build isn't deterministic, is there any provisions for Nix to force it to be deterministic? Like automatically forcing a rebuild if the output resulted in errors? Or is this left to the user to rerun the command? On 26/12/2014 4:17 AM, stewart mackenzie wrote: >> So bang goes tha

Re: [Nix-dev] Dataflow

2014-12-25 Thread Roger Qiu
I actually met similar problems awhile ago when using nixos-rebuild. What was kind of funny was that the size of the VM would be slightly different every time I reran the builds. On 26/12/2014 4:17 AM, stewart mackenzie wrote: >> So bang goes that idea of Declarative Concurrency, as it's already

Re: [Nix-dev] Enable openntpd instead ntp by default

2014-12-25 Thread Roger Qiu
What are the advantages and disadvantages? On 24/12/2014 9:12 PM, Raahul Kumar wrote: I would strongly prefer systemd-timesync, as the default, since we're using systemd anyway. Might as well get the maximum use out of it. Aloha, RK. On Tue, Dec 23, 2014 at 10:38 PM, Eelco Dolstra mailto:eel

Re: [Nix-dev] Dataflow

2014-12-27 Thread Roger Qiu
with tests. Mongrel2's built from source, comes with a bunch of tests, that you can run at the end, to verify that the built version works according to its tests. On 27/12/2014 8:10 AM, Vladimír Čunát wrote: On 12/26/2014 04:23 AM, Roger Qiu wrote: Given that the build isn't determi

Re: [Nix-dev] Missing documentation

2015-02-19 Thread Roger Qiu
Yes, I think this would be very helpful. On 19/02/2015 10:17 AM, "Ertugrul Söylemez" wrote: > > What I want to say is that it might be boring to maintain such a > > comprehensive help system, but it’s totally worth it, and it’s > > wonderful that someone volounteers to do that. BTW it would be ni

Re: [Nix-dev] NixOS next stable release

2015-03-28 Thread Roger Qiu
That feature would be really cool. I'm a bit confused, what's the status of the "Recursive Nix" feature? Is it really on hold? Or waiting for a better implementation? On 28/03/2015 9:50 PM, Bjørn Forsman wrote: > On 26 March 2015 at 12:37, Domen Kožar wrote: >> [...] >> I'd really like to see "

Re: [Nix-dev] Improving security updates

2015-04-14 Thread Roger Qiu
The page https://nixos.org/wiki/Security_Updates isn't very user friendly. It requires too much of the user (treats servers like pets and not like cattle): 1. Monitor package vulnerabilities. 2. Manually override the packages that have vulnerabilities. Rebuild. 3. Manually remove the the override

Re: [Nix-dev] NixOS on a machine with only one user

2015-04-24 Thread Roger Qiu
> Assuming bigger things usually gives you a better or at least more scalable result, and in most cases the additional cost is very close to zero. For example every single-disk system I set up uses a two-disk RAID array with one missing disk from the point of view of mdadm. If it does happen th

[Nix-dev] ZFS on NixOS regarding the `/etc/zfs/zpool.cache` file.

2015-04-27 Thread Roger Qiu
Hi, To people using ZFS on NixOS, does your `zdb` command work? I tried using `zdb` and it just gives: ``` cannot open '/etc/zfs/zpool.cache': No such file or directory ``` This file `/etc/zfs/zpool.cache` file does not exist if you follow the instructions regarding installing ZFS on NixOS. T

Re: [Nix-dev] ZFS on NixOS regarding the `/etc/zfs/zpool.cache` file.

2015-04-27 Thread Roger Qiu
le at startup? Thanks, Roger On 28/04/2015 3:22 PM, Roger Qiu wrote: > Hi, > > To people using ZFS on NixOS, does your `zdb` command work? > > I tried using `zdb` and it just gives: > > ``` > cannot open '/etc/zfs/zpool.cache': No such file or directory > ```

Re: [Nix-dev] Linux kernel version for next stable?

2015-05-07 Thread Roger Qiu
Linux 4.0 would be great. I want to use the lazyatime feature! (among other things of course) On 7/05/2015 4:32 PM, Wout Mertens wrote: Hi, Our current stable is 3.14, our "latest" is 3.15, and on kernel.org the latest longterm is 3.18.13 and stable is 4.0.2. Is there a

Re: [Nix-dev] Confused about packages

2015-05-19 Thread Roger Qiu
Wouldn't it be better for version numbers to always exist? That way it's simple to know the exact version of your package that you're installing, even if it's just one package. I'd prefer for it not to be random. On 16/05/2015 7:27 AM, Vladimír Čunát wrote: Hi. On 05/15/2015 11:09 PM, Amy de

[Nix-dev] Leap Second

2015-05-19 Thread Roger Qiu
Will NixOS be affected by the leap second issue that's coming up on June 30 2015? -- Founder of Matrix AI http://matrix.ai/ +61420925975 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Leap Second

2015-05-19 Thread Roger Qiu
Tue, May 19, 2015, 11:56 Roger Qiu wrote: > >> Will NixOS be affected by the leap second issue that's coming up on June >> 30 2015? >> >> -- >> Founder of Matrix AI >> http://matrix.ai/ >> +61420925975 >> >> __

Re: [Nix-dev] Leap Second

2015-05-20 Thread Roger Qiu
t.com/articles/199563 On Tue, May 19, 2015 at 5:56 PM, Roger Qiu <mailto:roger@polycademy.com>> wrote: I wonder why don't they add a patch to NTP to do what Google/AWS does with the leap second so we all don't have to face the problem. On 20/05/2015 1:54 AM,

Re: [Nix-dev] Leap Second

2015-05-21 Thread Roger Qiu
world at the "switch" time. > > > > On Tue, May 19, 2015 at 1:19 PM, Roger Qiu > wrote: > >> >> http://serverfault.com/questions/403732/anyone-else-experiencing-high-rates-of-linux-server-crashes-during-a-leap-second >> On 19/05/2015 8:06 PM, "Kirill

[Nix-dev] Directly configuring sysfs or /sys (not sysctl)

2015-05-23 Thread Roger Qiu
Hi, I was wondering if there was a particular Nix/NixOS configuration primitive that allowed direct & permanent editing of arbitrary sysfs `/sys` parameters? Currently it seems that it's possible by creating custom systemd services (or maybe a udev rule) that run at boot which set the settin

Re: [Nix-dev] Directly configuring sysfs or /sys (not sysctl)

2015-05-23 Thread Roger Qiu
primitive in Nix could use of them as a backing. The configuration primitive could be`boot.kernel.sys` or `boot.sys`. On 24/05/2015 3:25 AM, Roger Qiu wrote: Hi, I was wondering if there was a particular Nix/NixOS configuration primitive that allowed direct & permanent editing of arbitra

Re: [Nix-dev] Directly configuring sysfs or /sys (not sysctl)

2015-05-23 Thread Roger Qiu
15 4:08 AM, Bjørn Forsman wrote: > On 23 May 2015 at 19:35, Roger Qiu wrote: >> Just listing the current possible methods for configuring /sys (I haven't >> tried all of them): >> >> * Configuring a custom systemd service to run on boot that just executes &

Re: [Nix-dev] Setup GlusterFS server on NixOS machines

2015-09-27 Thread Roger Qiu
Same. On 28/09/2015 3:26 PM, rohit yadav wrote: Hi James, I have very similar goals. It would be great if there are more individuals. Thanks, Rohit On Sun, Sep 27, 2015 at 5:17 PM, James > wrote: rohit yadav gmail.com > writes:

Re: [Nix-dev] Network Manager vs WPA_Supplicant on Live CD Boot

2015-11-05 Thread Roger Qiu
ssid="TheFishburn" auth_failures=1 duration=10 reason=WRONG_KEY On Tue, Nov 3, 2015 at 10:40 AM, Roger Qiu <mailto:roger@polycademy.com>> wrote: Hi everybody, On my new laptop, I've been attempting to install NixOS. My latest problem concerns the WiFi. S

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

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

[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

[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

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).

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

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

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

[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] 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://

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

[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

[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

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

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

[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 _

[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

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

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

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

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

[Nix-dev] Regarding extra GRUB options in Configuration.nix

2014-05-27 Thread Roger Qiu
Hello, In a configuration.nix, where would you be able to set GRUB options such as: |GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true| The normal boot.loader.grub does not seem to have these functions? Thanks, Roger ___ nix-dev mailing list nix-d

Re: [Nix-dev] Regarding extra GRUB options in Configuration.nix

2014-05-28 Thread Roger Qiu
instead: if keystatus --shift ; then set timeout=-1 else set timeout=0 fi This will normally boot immediately without displaying the menu or waiting for something, _unless_ you are holding shift when booting. If you are holding shift, it will display the menu without timeout. -- Кир

[Nix-dev] Grub Install Failure when using boot.loader.devices = [ "/dev/sda" "/dev/sdb" ];

2014-07-03 Thread Roger Qiu
Hello everybody, When I run with: ``` boot.loader.device = "/dev/sda" ``` or ``` boot.loader.device = "/dev/sdb" ``` It works. But when I try to install Grub on both using: ``` boot.loader.devices = [ "/dev/sda" "/dev/sdb" ]; ``` This is basically the abridged error message: ``` Path '/boo

[Nix-dev] Dynamic Nix Expression Configuration

2014-07-07 Thread Roger Qiu
Hello everybody, What's the best way to send configuration parameters to Nix expressions? Say I have a tool (a bash script) that dynamically generates nix expressions based on other runtime factors. I can use the sed tool to find/replace some properties inside the `x.nix` files. But this can b

[Nix-dev] Overwriting or merging Nix expressions

2014-07-07 Thread Roger Qiu
Hello Nix Devs, I was wondering if there's a way to override Nix expressions. Say I define a Nix expressions such as: something.enable = true; But later on I decide to change it to: something.enable = false; Would this work? I find myself getting duplicate errors. One time I had something li

Re: [Nix-dev] Overwriting or merging Nix expressions

2014-07-08 Thread Roger Qiu
50 AM, Roger Qiu <mailto:roger@polycademy.com>> wrote: Hello Nix Devs, I was wondering if there's a way to override Nix expressions. Say I define a Nix expressions such as: something.enable = true; But later on I decide to change it to: somet

[Nix-dev] GRUB Options

2014-07-15 Thread Roger Qiu
Hello, How would one use Nix to set GRUB options such as: ``` GRUB_CMDLINE_LINUX="clocksource=tsc" ``` Assuming that this means: "Command-line arguments to add to menu entries for the Linux kernel. " Then does that mean I can use: ``` boot.kernelParams = [ clocksource = "tsc"; ]; ``` Th

[Nix-dev] Upgrading NixOS with sudo results in some error

2014-07-21 Thread Roger Qiu
Hello, When I try running: `` sudo nixos-rebuild switch --upgrade ``` I get this message: ``` /run/current-system/sw/bin/nix-channel: unable to check `https://nixos.org/channels/nixos-14.04' ``` What does that mean? And how can I fix it? It only happens when I use sudo with it. I cannot use

[Nix-dev] Configuring Packages installed with `nix-env` is impossible?

2014-07-21 Thread Roger Qiu
Hello, The NixOS manual specifies 2 ways of installing packages, the declarative style through configuration.nix + nixos-rebuild switch, or the per-user style via `nix-env -i`. While you can configure the package options inside configuration.nix, how does one configure packages when they are i

[Nix-dev] nix-store --serve documentation

2014-07-25 Thread Roger Qiu
Hello, What does `nix-store --serve` do? I can't find any documentation on this command. I found it here: https://github.com/NixOS/nixpkgs/blob/74859a88e5ac441ec92b2d93cc78ab395eb105e8/nixos/modules/services/misc/nix-ssh-serve.nix Thanks, Roger ___ n

[Nix-dev] nix-store --query --deriver command gives the wrong derivation?

2014-07-28 Thread Roger Qiu
Hello I've tried using the `nix-store --query --deriver $(which binary)` in order to get the path to the `.drv` file. However it never seems to give me the right derivation file. For example: ``` $ nix-store --query --deriver $(which firefox) /nix/store/x505j55hvf2si7pfpwnpj7sljjshai9d-firefox

[Nix-dev] Variable Assignment in Nix Expressions

2014-08-18 Thread Roger Qiu
Hello, How come the nix-repl allows a freestanding variable assignment, but the actual Nix expressions don't? ``` # allowed in nix-repl but not in normal nix x = 5 ``` ``` # allowed in normal nix and nix-repl let x = 5; in {} ``` Apparently this has something to do with the purity and lambda c

Re: [Nix-dev] Overwriting or merging Nix expressions

2014-08-18 Thread Roger Qiu
te answer. > > On Mon, Jul 7, 2014 at 8:50 AM, Roger Qiu wrote: >> I was wondering if there's a way to override Nix expressions. > I think you are specifically talking about NixOS modules, right? > >> Say I define a Nix expressions such as: >> >> something.en

[Nix-dev] Function with no arguments in Nix expressions

2014-08-18 Thread Roger Qiu
Hello, How does one declare a function with no arguments? ``` x = : 1 + 2 ``` doesn't work. Thanks, Roger ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

[Nix-dev] Changing the list of upstream systemd services that is running

2014-08-19 Thread Roger Qiu
Hello all, On the boot/systemd.nix, there's a list defining all the upstream systemd units to activate: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/systemd.nix#L27-L165 I would like to override some of the values in this list inside my configuration.nix. The only opt

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

  1   2   >