1{
2 config,
3 lib,
4 ...
5}: {
6 options.myHome.profiles.betterLocations.enable = lib.mkEnableOption "for a slightly less cluttered home folder";
7
8 config = lib.mkIf config.myHome.profiles.betterLocations.enable {
9 home.sessionVariables = {
10 NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
11 NPM_CONFIG_CACHE = "${config.xdg.cacheHome}/npm";
12 };
13
14 programs = {
15 bash = {
16 enable = true;
17 historyFile = "${config.xdg.dataHome}/bash_history";
18 };
19 gpg = {
20 enable = true;
21 homedir = "${config.xdg.dataHome}/gnupg";
22 };
23 };
24 };
25}