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

View File

@ -25,6 +25,13 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
# fix touchpad not working after resume on ThinkPad Yoga S1...
# XXX move to device-specific config file...
powerManagement.resumeCommands = ''
${pkgs.kmod}/bin/modprobe -r i2c_i801
${pkgs.kmod}/bin/modprobe i2c_i801
'';
networking.hostName = "yoga-nix"; networking.hostName = "yoga-nix";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.

View File

@ -36,10 +36,4 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 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
'';
} }