refactoring...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-09-02 17:20:11 +03:00
parent 7c31a57a2d
commit a6c2ee678a
2 changed files with 8 additions and 7 deletions

View File

@ -5,7 +5,7 @@
# - hibernation
# - down works
# - up broken
# - suspend
# - suspend (broken)
# - split into logical components (OS, hardware, ...)
#
#
@ -25,12 +25,6 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# XXX move to hardware-specific-file...
powerManagement.resumeCommands = ''
${pkgs.kmod}/bin/modprobe -r i2c_i801
${pkgs.kmod}/bin/modprobe i2c_i801
'';
networking.hostName = "yoga-nix";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.

View File

@ -35,4 +35,11 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# fix touchpad not working after resume on ThinkPad Yoga S1...
powerManagement.resumeCommands = ''
${pkgs.kmod}/bin/modprobe -r i2c_i801
${pkgs.kmod}/bin/modprobe i2c_i801
'';
}