Browse Source

Add XDG compliance

main
parent
commit
88314b0092
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 12
      README.org
  2. 6
      modules/nvidia.nix
  3. 6
      modules/x11.nix

12
README.org

@ -925,6 +925,12 @@ X11, or X[fn:25] is the generic name for the X Window System Display Server. All
services.xserver.displayManager.startx.enable = true;
environment = {
variables = {
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_BIN_HOME = "$HOME/.local/bin";
};
systemPackages = with pkgs; [
pkgs.sqlite
pkgs.pfetch
@ -1075,6 +1081,12 @@ in {
# Add the offload script to the $PATH.
environment.systemPackages = [ myNvidiaOffload ];
# Configure XDG compliance.
environment.variables = {
__GL_SHADER_DISK_CACHE_PATH = "$XDG_CACHE_HOME/nv";
CUDA_CACHE_PATH = "$XDG_CACHE_HOME/nv";
};
# Enable the NVIDIA drivers.
# NOTE: You may need to use either of the commands below:
services.xserver.videoDrivers = [ "nvidia" ];

6
modules/nvidia.nix

@ -15,6 +15,12 @@ in {
# Add the offload script to the $PATH.
environment.systemPackages = [ myNvidiaOffload ];
# Configure XDG compliance.
environment.variables = {
__GL_SHADER_DISK_CACHE_PATH = "$XDG_CACHE_HOME/nv";
CUDA_CACHE_PATH = "$XDG_CACHE_HOME/nv";
};
# Enable the NVIDIA drivers.
# NOTE: You may need to use either of the commands below:
services.xserver.videoDrivers = [ "nvidia" ];

6
modules/x11.nix

@ -8,6 +8,12 @@
services.xserver.displayManager.startx.enable = true;
environment = {
variables = {
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_BIN_HOME = "$HOME/.local/bin";
};
systemPackages = with pkgs; [
pkgs.sqlite
pkgs.pfetch

Loading…
Cancel
Save