Fix nvidia-settings wrapper

This commit is contained in:
Henrik Lissner 2020-02-08 17:42:02 -05:00
parent d494b6b60f
commit 8616ae118a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -27,7 +27,8 @@
environment.systemPackages = with pkgs; [
(writeScriptBin "nvidia-settings" ''
#!${stdenv.shell}
exec ${config.boot.kernelPackages.nvidia_x11}/bin/nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings"
mkdir -p "$XDG_CONFIG_HOME/nvidia"
exec ${config.boot.kernelPackages.nvidia_x11.settings}/bin/nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings"
'')
];