Disable the webcam on my notebook
For some reason it draws a lot of power and I have an external one that works better.
This commit is contained in:
parent
e78e2b3528
commit
cc2e0a8e01
|
@ -88,6 +88,11 @@
|
|||
fstrim.enable = true; # Enable TRIM for SD cards
|
||||
hardware.bolt.enable = true; # Enable Thunderbolt control
|
||||
logind.lidSwitchExternalPower = "ignore";
|
||||
|
||||
# Disable the integrated webcam
|
||||
udev.extraRules = ''
|
||||
ACTION=="add", ATTR{idVendor}=="0c45", ATTR{idProduct}=="671d", RUN="${pkgs.bash}/bin/sh -c 'echo 1 >/sys/\$devpath/remove'"
|
||||
'';
|
||||
};
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
|
|
Loading…
Reference in New Issue