1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

Fix spelling

Also, it's not necessary to order a unit after "sysinit.target" since
that's implied.
This commit is contained in:
Eelco Dolstra 2013-08-26 12:18:26 +02:00
parent 8bfbe7ef84
commit 40c6f6252e

View file

@ -1,7 +1,6 @@
{pkgs, config, ...}:
{ config, pkgs, ... }:
let kernel = config.boot.kernelPackages;
in
let kernel = config.boot.kernelPackages; in
{
@ -13,7 +12,8 @@ in
default = false;
type = pkgs.lib.types.bool;
description = ''
Completely disable the nvidia gfx chip (saves power / heat) and just use IGP
Completely disable the NVIDIA graphics card and use the
integrated graphics processor instead.
'';
};
@ -28,8 +28,7 @@ in
boot.extraModulePackages = [ kernel.bbswitch ];
systemd.services.bbswitch = {
description = "turn off nvidia card";
after = [ "sysinit.target" ];
description = "Disable NVIDIA Card";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";