Talk:Using X without a Display Manager
The following excerpt from this script doesn't seem like the best practice. It's modifying the nix-store directly:
- make the intel backlight helper setuid if it isn't already
xf86videointel_path=$(get_pkg_path xorg.xf86videointel) backlight_helper_path="${xf86_video_intel_path}/libexec/xf86-video-intel-backlight-helper" if [ -e "$backlight_helper_path" -a ! -u "$backlight_helper_path" ]; then sudo chmod +s ${xf86_video_intel_path}/libexec/xf86-video-intel-backlight-helper fi