From 40c6f6252efb31b22d7a8bb2cf510faa0eac7936 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 26 Aug 2013 12:18:26 +0200 Subject: [PATCH] Fix spelling Also, it's not necessary to order a unit after "sysinit.target" since that's implied. --- modules/services/hardware/nvidia-optimus.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/services/hardware/nvidia-optimus.nix b/modules/services/hardware/nvidia-optimus.nix index 79eb92c2f04d..4c0ce794d4f7 100644 --- a/modules/services/hardware/nvidia-optimus.nix +++ b/modules/services/hardware/nvidia-optimus.nix @@ -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";