mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	chore: format repo using treefmt-nix and nixfmt-rfc-style
This commit is contained in:
		@@ -16,7 +16,10 @@
 | 
			
		||||
    serviceConfig.Type = "oneshot";
 | 
			
		||||
    description = "reload touchpad driver";
 | 
			
		||||
    # must run at boot (and not too early), and after suspend
 | 
			
		||||
    wantedBy = [ "display-manager.service" "post-resume.target" ];
 | 
			
		||||
    wantedBy = [
 | 
			
		||||
      "display-manager.service"
 | 
			
		||||
      "post-resume.target"
 | 
			
		||||
    ];
 | 
			
		||||
    # prevent running before suspend
 | 
			
		||||
    after = [ "post-resume.target" ];
 | 
			
		||||
  };
 | 
			
		||||
@@ -24,7 +27,6 @@
 | 
			
		||||
  # so that post-resume.service exists
 | 
			
		||||
  powerManagement.enable = true;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  # fix suspend
 | 
			
		||||
  # https://bbs.archlinux.org/viewtopic.php?id=266108 says linux >= 5.12 required
 | 
			
		||||
  boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") pkgs.linuxPackages_latest;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user