Fix spelling
Also, it's not necessary to order a unit after "sysinit.target" since that's implied.
This commit is contained in:
parent
8bfbe7ef84
commit
40c6f6252e
@ -1,7 +1,6 @@
|
|||||||
{pkgs, config, ...}:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let kernel = config.boot.kernelPackages;
|
let kernel = config.boot.kernelPackages; in
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -13,7 +12,8 @@ in
|
|||||||
default = false;
|
default = false;
|
||||||
type = pkgs.lib.types.bool;
|
type = pkgs.lib.types.bool;
|
||||||
description = ''
|
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 ];
|
boot.extraModulePackages = [ kernel.bbswitch ];
|
||||||
|
|
||||||
systemd.services.bbswitch = {
|
systemd.services.bbswitch = {
|
||||||
description = "turn off nvidia card";
|
description = "Disable NVIDIA Card";
|
||||||
after = [ "sysinit.target" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
Loading…
Reference in New Issue
Block a user