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

Tomasz Kontusz tomasz.kontusz at gmail.com
Wed Feb 18 09:21:20 CET 2015


Oops, wrong address


-------- Wiadomość oryginalna --------
Od: Tomasz Kontusz <tomasz.kontusz at gmail.com>
Wysłane: Wed Feb 18 09:19:17 CET 2015
Do: James Cook <james.cook at utoronto.ca>
Temat: Re: [Nix-dev] Override nix.maxJobs without editing	hardware-configuration.nix?

You can use nix.maxJobs = mkForce 4 - see https://nixos.org/nixos/manual/sec-writing-modules.html#sec-option-definitions

James Cook <james.cook at utoronto.ca> napisał:
>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 course, I could work around this by editing
>hardware-configuration.nix, but then the change would be lost the next
>time I run nixos-generate-config. Is there a better way to do this?
>
>(Context: with hyperthreading, my laptop presents 8 cores, but doesn't
>really have an appropriate amount of RAM for 8 simultaneous builds.)
>
>Thanks,
>  James
>_______________________________________________
>nix-dev mailing list
>nix-dev at lists.science.uu.nl
>http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
Wysłane za pomocą K-9 Mail.
-- 
Wysłane za pomocą K-9 Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150218/3817c3cd/attachment.html 


More information about the nix-dev mailing list