feat: env vars
This commit is contained in:
parent
4d2fdcda4f
commit
6d3fa9a54f
4 changed files with 26 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ in
|
||||||
{
|
{
|
||||||
home.sessionVariables = lib.optionalAttrs enableZen {
|
home.sessionVariables = lib.optionalAttrs enableZen {
|
||||||
BROWSER = "zen-browser";
|
BROWSER = "zen-browser";
|
||||||
|
}
|
||||||
|
// lib.optionalAttrs enableClaude {
|
||||||
|
CLAUDE_CONFIG_DIR = "${config.xdg.configHome}/claude";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.mpv.enable = true;
|
programs.mpv.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ let
|
||||||
docker = true;
|
docker = true;
|
||||||
aws = true;
|
aws = true;
|
||||||
psql = true;
|
psql = true;
|
||||||
|
tex = true;
|
||||||
sqlite = true;
|
sqlite = true;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -42,6 +43,12 @@ in
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
LESSHISTFILE = "-";
|
LESSHISTFILE = "-";
|
||||||
|
GRADLE_USER_HOME = "${config.xdg.configHome}/gradle";
|
||||||
|
LIBVIRT_DEFAULT_URI = "qemu:///system";
|
||||||
|
MBSYNCRC = "${config.xdg.configHome}/mbsync/config";
|
||||||
|
PARALLEL_HOME = "${config.xdg.configHome}/parallel";
|
||||||
|
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/pass";
|
||||||
|
PRETTIERD_CONFIG_HOME = "${config.xdg.stateHome}/prettierd";
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs ripgrep {
|
// lib.optionalAttrs ripgrep {
|
||||||
RIPGREP_CONFIG_PATH = "${config.xdg.configHome}/rg/config";
|
RIPGREP_CONFIG_PATH = "${config.xdg.configHome}/rg/config";
|
||||||
|
|
@ -58,12 +65,16 @@ in
|
||||||
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
||||||
NODE_REPL_HISTORY = "${config.xdg.stateHome}/node_repl_history";
|
NODE_REPL_HISTORY = "${config.xdg.stateHome}/node_repl_history";
|
||||||
PNPM_HOME = "${config.xdg.dataHome}/pnpm";
|
PNPM_HOME = "${config.xdg.dataHome}/pnpm";
|
||||||
|
PNPM_NO_UPDATE_NOTIFIER = "true";
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs python {
|
// lib.optionalAttrs python {
|
||||||
PYTHONSTARTUP = "${config.xdg.configHome}/python/pythonrc";
|
PYTHONSTARTUP = "${config.xdg.configHome}/python/pythonrc";
|
||||||
PYTHON_HISTORY = "${config.xdg.stateHome}/python_history";
|
PYTHON_HISTORY = "${config.xdg.stateHome}/python_history";
|
||||||
PYTHONPYCACHEPREFIX = "${config.xdg.cacheHome}/python";
|
PYTHONPYCACHEPREFIX = "${config.xdg.cacheHome}/python";
|
||||||
PYTHONUSERBASE = "${config.xdg.dataHome}/python";
|
PYTHONUSERBASE = "${config.xdg.dataHome}/python";
|
||||||
|
MYPY_CACHE_DIR = "${config.xdg.cacheHome}/mypy";
|
||||||
|
JUPYTER_CONFIG_DIR = "${config.xdg.configHome}/jupyter";
|
||||||
|
JUPYTER_PLATFORM_DIRS = "1";
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs ocaml {
|
// lib.optionalAttrs ocaml {
|
||||||
OPAMROOT = "${config.xdg.dataHome}/opam";
|
OPAMROOT = "${config.xdg.dataHome}/opam";
|
||||||
|
|
@ -74,12 +85,18 @@ in
|
||||||
// lib.optionalAttrs aws {
|
// lib.optionalAttrs aws {
|
||||||
AWS_SHARED_CREDENTIALS_FILE = "${config.xdg.configHome}/aws/credentials";
|
AWS_SHARED_CREDENTIALS_FILE = "${config.xdg.configHome}/aws/credentials";
|
||||||
AWS_CONFIG_FILE = "${config.xdg.configHome}/aws/config";
|
AWS_CONFIG_FILE = "${config.xdg.configHome}/aws/config";
|
||||||
|
BOTO_CONFIG = "${config.xdg.configHome}/boto/config";
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs psql {
|
// lib.optionalAttrs psql {
|
||||||
PSQL_HISTORY = "${config.xdg.stateHome}/psql_history";
|
PSQL_HISTORY = "${config.xdg.stateHome}/psql_history";
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs sqlite {
|
// lib.optionalAttrs sqlite {
|
||||||
SQLITE_HISTORY = "${config.xdg.stateHome}/sqlite_history";
|
SQLITE_HISTORY = "${config.xdg.stateHome}/sqlite_history";
|
||||||
|
}
|
||||||
|
// lib.optionalAttrs tex {
|
||||||
|
TEXMFHOME = "${config.xdg.dataHome}/texmf";
|
||||||
|
TEXMFVAR = "${config.xdg.cacheHome}/texlive/texmf-var";
|
||||||
|
TEXMFCONFIG = "${config.xdg.configHome}/texlive/texmf-config";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ in
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
TERMINAL = "ghostty";
|
TERMINAL = "ghostty";
|
||||||
TERM = "xterm-ghostty";
|
TERM = "xterm-ghostty";
|
||||||
|
TERMINFO = "${config.xdg.dataHome}/terminfo";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.ghostty = {
|
programs.ghostty = {
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,11 @@ let
|
||||||
backlightDevice = "intel_backlight";
|
backlightDevice = "intel_backlight";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
home.sessionVariables = {
|
||||||
|
XINITRC = "${config.xdg.configHome}/X11/xinitrc";
|
||||||
|
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
cliphist
|
cliphist
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue