-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organize XDG declartions and VR tweaks
- Moved XDG declarations into xdg module - Add NPM xdg declaration - Add 50% foevation strength, for better stability with Beat Saber - Note that NixOS/nixpkgs#350069 is now merged, waiting for it to move into unstable hydra
- Loading branch information
Showing
4 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: { | ||
}: let | ||
hm-config = config.hm; | ||
in { | ||
environment.sessionVariables = { | ||
XDG_CACHE_HOME = "$HOME/.cache"; | ||
XDG_CONFIG_HOME = "$HOME/.config"; | ||
XDG_DATA_HOME = "$HOME/.local/share"; | ||
XDG_STATE_HOME = "$HOME/.local/state"; | ||
XDG_BIN_HOME = "$HOME/.local/bin"; | ||
|
||
ANDROID_USER_HOME = "$XDG_DATA_HOME/android"; | ||
CUDA_CACHE_PATH = "$XDG_CACHE_HOME/nv"; | ||
TLDR_CACHE_DIR = "$XDG_CACHE_HOME/tldr"; | ||
NPM_CONFIG_USERCONFIG = "$XDG_CONFIG_HOME/npm/npmrc"; | ||
}; | ||
|
||
home.shellAliases = { | ||
wget = ''wget --hsts-file="$XDG_DATA_HOME/wget-hsts"''; | ||
}; | ||
|
||
create.configFile."npm/npmrc".text = '' | ||
prefix=${hm-config.xdg.dataHome}/npm | ||
cache=${hm-config.xdg.cacheHome}/npm | ||
tmp=$XDG_RUNTIME_DIR/npm | ||
init-module=${hm-config.xdg.configHome}/npm/config/npm-init.js | ||
''; | ||
} |