modules/home: flatten
This commit is contained in:
parent
866b1561af
commit
2e6d2754a9
6 changed files with 66 additions and 67 deletions
29
modules/home/xdg.nix
Normal file
29
modules/home/xdg.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
inherit (config.xdg)
|
||||
dataHome
|
||||
cacheHome
|
||||
configHome
|
||||
stateHome
|
||||
;
|
||||
in
|
||||
{
|
||||
xdg.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
SQLITE_HISTORY = "${cacheHome}/sqlite_history";
|
||||
PSQL_HISTORY = "${dataHome}/psql_history";
|
||||
NPM_CONFIG_USERCONFIG = "${configHome}/npm/npmrc";
|
||||
NODE_REPL_HISTORY = "${dataHome}/node_repl_history";
|
||||
LESSHISTFILE = "${stateHome}/less/history";
|
||||
GRADLE_USER_HOME = "${dataHome}/gradle";
|
||||
GEM_SPEC_CACHE = "${cacheHome}/gem";
|
||||
GEM_HOME = "${dataHome}/gem";
|
||||
CP_HOME_DIR = "${dataHome}/cocoapods";
|
||||
CARGO_HOME = "${dataHome}/cargo";
|
||||
W3M_DIR = "${dataHome}/w3m";
|
||||
STACK_XDG = 1;
|
||||
};
|
||||
|
||||
# TODO: Manage npmrc with nix too
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue