Re: [Nix-dev] Why are there so many branches in the nixpkgs repo

2015-02-18 Thread Nathan Bijnens
First make a fork with all history. Afterwards I like Wout's suggestion. --- nat...@nathan.gs | nathan.gs http://nathan.gs?utm_source=footerutm_medium=emailutm_campaign=n | @nathan_gs http://twitter.com/nathan_gs | linkedin.com/in/nbijnens On Wed, Feb 18, 2015 at 9:36 AM, Wout Mertens

[Nix-dev] Fwd: Re: Override nix.maxJobs without editing hardware-configuration.nix?

2015-02-18 Thread Tomasz Kontusz
Oops, wrong address Wiadomość oryginalna Od: Tomasz Kontusz tomasz.kont...@gmail.com Wysłane: Wed Feb 18 09:19:17 CET 2015 Do: James Cook james.c...@utoronto.ca Temat: Re: [Nix-dev] Override nix.maxJobs without editing hardware-configuration.nix? You can use nix.maxJobs

Re: [Nix-dev] Please test Nix store auto-optimise

2015-02-18 Thread Raahul Kumar
Can I know the best way to do this for BTRFS? Install duperemove, then what? Aloha, RK. On Mon, Feb 16, 2015 at 8:32 AM, James Cook james.c...@utoronto.ca wrote: Oops, yes, that's a good point. Filesystems with fancy things like reflinks probably have their own tools for deduplication. On

Re: [Nix-dev] Why are there so many branches in the nixpkgs repo

2015-02-18 Thread Wout Mertens
My vote is to remove merged branches without historical significance (version 0.5 is a keeper, like upstart), and then any branches that got their last push before August 2014 are renamed to attic/... That should make the github interface easier to navigate.

Re: [Nix-dev] Please test Nix store auto-optimise

2015-02-18 Thread Wout Mertens
Since it looks for sub-blocks, first run the nix-store --optimise and then run duperemove -dhr /nix/store. Read the FAQ though: https://github.com/markfasheh/duperemove/blob/master/FAQ.md BTW, since bedup does files incrementally, it's nice to run that too. So I'd do nix-store --optimise, bedup

Re: [Nix-dev] spamassassin module

2015-02-18 Thread Luca Bruno
On 17/02/2015 23:59, Eike wrote: Hello, I'm trying to add spamassassin to my email setup. So I added this to my configuration.nix: services.spamassassin = { enable = true; debug = true; }; I then tried with `systemctl start spamd' which failed, because of missing

Re: [Nix-dev] Override nix.maxJobs without editing hardware-configuration.nix?

2015-02-18 Thread Eelco Dolstra
Hi, On 18/02/15 08:25, James Cook wrote: I can't set nix.maxJobs in configuration.nix, because it is set in hardware-configuration.nix: error: The unique option `nix.maxJobs' is defined multiple times, in `/etc/nixos/hardware-configuration.nix' and `/etc/nixos/configuration.nix'. Of

Re: [Nix-dev] Bash completion makes bash startup awefully slow

2015-02-18 Thread Sergey Mironov
+1 from here. I remember, in Gentoo one could select the groups of completion scripts to include into file Regards, Sergey 2015-02-14 14:54 GMT+03:00 Wout Mertens wout.mert...@gmail.com: Err, can you quantify how slow bash starts up? Anyway, Marc Weber has been working on modular bash

Re: [Nix-dev] How to add an additional IP address besides the DHCP configured address?

2015-02-18 Thread Ertugrul Söylemez
I would like to add the IP address 172.16.48.17/28 to my enp0s3 interface but I would also like to keep the DHCP configured address. [...] Is this possible or should I use networking.localCommands? The proper way to do this is to instruct the DHCP *server* to assign the addresses. Most

Re: [Nix-dev] Missing documentation

2015-02-18 Thread Kirill Elagin
On Mon Feb 16 2015 at 6:22:20 PM Eelco Dolstra eelco.dols...@logicblox.com wrote: Note that I removed --help on purpose because I didn't want to maintain two sets of option documentation. Invoking man is also what tools like Git do, so it's not entirely uncommon. -- Eelco Dolstra |

Re: [Nix-dev] Why are there so many branches in the nixpkgs repo

2015-02-18 Thread Vladimír Čunát
On 02/18/2015 09:51 AM, Nathan Bijnens wrote: My vote is to remove merged branches without historical significance (version 0.5 is a keeper, like upstart), and then any branches that got their last push before August 2014 are renamed to attic/... First make a fork with all

Re: [Nix-dev] Override nix.maxJobs without editing hardware-configuration.nix?

2015-02-18 Thread James Cook
maxJobs = pkgs.lib.mkForce 4; worked. Thanks all! I have a lot to learn about NixOS configuration. On 18 February 2015 at 02:25, Eelco Dolstra eelco.dols...@logicblox.com wrote: Hi, On 18/02/15 08:25, James Cook wrote: I can't set nix.maxJobs in configuration.nix, because it is set in

Re: [Nix-dev] Permission error when installing mpd

2015-02-18 Thread James Cook
On 18 February 2015 at 22:22, Nikita Karetnikov nik...@karetnikov.org wrote: I've tried various options, but mpd always fails with a permission error. Here's one example: services.mpd.enable = true; services.mpd.dataDir = /home/nikita/dotfiles/mpd/.mpd; services.mpd.musicDirectory =

Re: [Nix-dev] Permission error when installing mpd

2015-02-18 Thread Kirill Elagin
As is clear from the log, it is not mpd who creates the directory, it’s the preStart = mkdir -p ${cfg.dataDir} chown -R mpd:mpd ${cfg.dataDir}; line it its unit file. The permission error likely happens because it doesn’t have the search (x) permission. Remember that it is running as

[Nix-dev] NIx and portability

2015-02-18 Thread emery
I'm working on porting Nix to a non-UNIX operating system and I'd like some advice. I want to get Nix running on the Genode microkernel OS (http://genode.org/). Genode is not UNIX-based and the differences are very fundamental but so far I have managed to execute some simple builders using Bash

[Nix-dev] Permission error when installing mpd

2015-02-18 Thread Nikita Karetnikov
I've tried various options, but mpd always fails with a permission error. Here's one example: services.mpd.enable = true; services.mpd.dataDir = /home/nikita/dotfiles/mpd/.mpd; services.mpd.musicDirectory = /home/nikita/music; Both directories exist. $ journalctl -u mpd.service Feb 19

Re: [Nix-dev] ZSH Completions for Nix, NixOS, NixOps

2015-02-18 Thread Christian Lask
Spencer Whitt s...@swhitt.me writes: I've written a fairly complete set of ZSH completions for Nix, NixOS, and NixOps. You can find them here: https://github.com/spwhitt/nix-zsh-completions This is awesome! These are still a work in progress so expect rough edges and please submit issues.

[Nix-dev] NetworkManager Ad-Hoc problem

2015-02-18 Thread Sergey Mironov
Hi! I've got a trouble connecting to my mobile phone's Ad-Hoc network with NetworkManager. The log contains the following [1]. Quick googling [2] shows that it may be a WPA problem, or the driver problem. Could you please advice how to fix it? Dow we use WPA or WPA2? I forked from

Re: [Nix-dev] Missing documentation

2015-02-18 Thread Ertugrul Söylemez
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 nice to have a generic framework for writing docs and then doing things like generating man-pages and