mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-19 07:56:59 +01:00
refactor: Use hyphen(`-`) for variable names & folder names(except Python), replace all unserscore(`_`) with hyphen(`-`).
31 lines
686 B
Nix
31 lines
686 B
Nix
{
|
|
config,
|
|
myvars,
|
|
...
|
|
}: let
|
|
d = config.xdg.dataHome;
|
|
c = config.xdg.configHome;
|
|
cache = config.xdg.cacheHome;
|
|
in rec {
|
|
home.homeDirectory = "/home/${myvars.username}";
|
|
|
|
# environment variables that always set at login
|
|
home.sessionVariables = {
|
|
# clean up ~
|
|
LESSHISTFILE = cache + "/less/history";
|
|
LESSKEY = c + "/less/lesskey";
|
|
WINEPREFIX = d + "/wine";
|
|
|
|
# set this variable make i3 failed to start
|
|
# related issue:
|
|
# https://github.com/sddm/sddm/issues/871
|
|
# XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
|
|
|
# set default applications
|
|
BROWSER = "firefox";
|
|
|
|
# enable scrolling in git diff
|
|
DELTA_PAGER = "less -R";
|
|
};
|
|
}
|