On 12/20/2012 06:16 PM, Richard Wallace wrote:
Cool. Although I admit I'm still a bit lost on where the nix.conf file is supposed to go. I tried every location I could think of for the `prefix` in `prefix/nix/nix.conf` and none of those worked.

On NixOS, we set NIX_CONF_DIR=/etc/nix, and the configuration file goes in /etc/nix/nix.conf. The nix in the binary tarball is built with sysconfdir in the nix store (which you can't modify), so NIX_CONF_DIR is the only way to override it.

I also had to use a slightly different path than you suggested in the PR, `/nix/var/nix/profiles/per-user/rwallace/channels/binary-caches/*`.

Ah, thanks, fixed the pull request.

 So for now I'm passing the option manually. :(

Any suggestions?
Thanks again,
Rich


On Thu, Dec 20, 2012 at 3:30 PM, Shea Levy <[email protected] <mailto:[email protected]>> wrote:

    On 12/20/2012 05:28 PM, Richard Wallace wrote:
    Aha.  That should probably be mentioned in the manual under the
    "Single-user mode" section[1] of the manual.

    Already a pull request: https://github.com/NixOS/nix/pull/72 :)


     It might also be nice if that could be autodetected by the
    'nix-finish-install' script and setup properly.  I was also
    thrown off the trail because this wasn't the case with nix 1.1.

    [1] http://hydra.nixos.org/build/3540507/download/1/manual/#idp15104


    On Thu, Dec 20, 2012 at 2:51 PM, Eelco Dolstra
    <[email protected]
    <mailto:[email protected]>> wrote:

        Hi,

        On 20/12/12 22:46, Richard Wallace wrote:

        > Oh, that was the problem.  I checked after doing
        `nix-channel --update` and the
        > file `~/.nix-defexpr/channels/binary-caches/nixpkgs` contained
        > `http://nixos.org/binary-cache/`
        <http://nixos.org/binary-cache/%60>. But it looks like it was
        being ignored, for
        > whatever reason.

        This is because by default, Nix only looks in
        /nix/var/nix/profiles/per-user/root/channels/binary-caches/*
        for binary cache
        URLs.  So it only checks the channels added by root.  There
        is an option
        "binary-caches-files" to overide this.

        --
        Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
        <http://nixos.org/%7Eeelco/>
        _______________________________________________
        nix-dev mailing list
        [email protected] <mailto:[email protected]>
        http://lists.science.uu.nl/mailman/listinfo/nix-dev




    _______________________________________________
    nix-dev mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.science.uu.nl/mailman/listinfo/nix-dev



_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to