[Nix-dev] Re: [Nix-commits] SVN commit: nix - r25510 - in configurations/trunk: computer/asus/n53j misc/raskin misc/raskin/lesser-expressions
Nicolas Pierron
nicolas.b.pierron at gmail.com
Wed Jan 12 13:11:45 CET 2011
Hi Michael,
I am happy to see that you found time to do it. Even if this is not
yet useful for other users, this could be helpful for you to keep
things separated and would help you to redo your system on another
computer ;)
Your computer module is good.
On Wed, Jan 12, 2011 at 07:38, Michael Raskin <7c6f434c at mail.ru> wrote:
> Added: configurations/trunk/computer/asus/n53j/n53jn-sz074v.nix
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ configurations/trunk/computer/asus/n53j/n53jn-sz074v.nix Wed Jan 12 06:38:16 2011 (r25510)
> @@ -0,0 +1,55 @@
> +{pkgs, config, ...}:
> +
> +with pkgs.lib;
> +
> +{
> + options = {
> + };
If you don't have options, you can just write a configuration such as
the default /etc/nixos/configuration.nix which only contains option
definitions.
> + config = {
> + boot.kernelModules = [
> + "acpi-cpufreq"
> + "cpufreq-ondemand"
> + "coretemp"
> + "battery"
> + # Otherwise speaker doesn't work
> + "snd-hda-intel\\ model=auto\\ position_fix=0"
see (1).
> + # USB 3.0
> + "xhci-hcd"
> + ];
> +
> + hardware.bluetooth.enable = mkDefaultValue true;
> +
> + # Intel Core i5 -- 450M
> + nix.maxJobs = mkDefaultValue 4;
This is the same of the i7, so you can add 8 because each core is
multi-threaded.
> + services.xserver = {
> + # TODO: find the right model or add one for it.
> + xkbModel = "pc105";
> +
> + synaptics = mkDefaultValue {
> + enable = true;
> + minSpeed = "0.7";
> + maxSpeed = "1.5";
> + };
> +
> + # Intel Corporation Core Processor Integrated Graphics Controller
> + videoDrivers = [ "intel" ];
> + driSupport = true;
> + resolutions = [{x = 1920; y=1080;}];
see (1)
> + deviceSection = ''
> + # useful with this video card.
> + Option "RenderAccel" "true"
> + '';
> +
> + defaultDepth = 24;
> + };
> +
> +
> + powerManagement.enable = mkDefaultValue true;
> +
> + # TODO: add support for biometrics login.
> + };
> +}
> +
(1) This kind of special things make me happy. Because new user may
benefit from your investigations without the need to know how to patch
that them-self.
I hope, this would be used sooner or later by other NixOS users.
Thank you for your contribution in this great plan to conquer world's
computers. ;)
--
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
More information about the nix-dev
mailing list