powerManagement.powertop.postStart
NixOS option
Shell commands executed after powertop is started. This can be used to workaround problematic configurations. For example, you can retrigger an udev rule to disable power saving on unsupported USB devices: services.udev.extraRules = ''' # disable USB auto suspend for Logitech, Inc. G PRO Gaming Mouse ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c08c", TEST=="power/control", ATTR{power/control}="on" ''';
type: strings concatenated with "\n"Default
""
Example
declared in: nixos/modules/tasks/powertop.nixView source on NixOS/nixpkgs →''
''${lib.getExe' config.systemd.package "udevadm"} trigger -c bind -s usb -a idVendor=046d -a idProduct=c08c
''