mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-17 23:14:07 +01:00
41 lines
885 B
Nix
41 lines
885 B
Nix
{config, ...}: let
|
||
d = config.xdg.dataHome;
|
||
c = config.xdg.configHome;
|
||
cache = config.xdg.cacheHome;
|
||
in {
|
||
imports = [
|
||
./nushell
|
||
./common.nix
|
||
./starship.nix
|
||
./terminals.nix
|
||
];
|
||
|
||
programs.bash = {
|
||
enable = true;
|
||
enableCompletion = true;
|
||
};
|
||
|
||
# add environment variables
|
||
# 注意不要用 home.sessionVariables 或 home.xxx.sessionVariables,这俩参数没用
|
||
systemd.user.sessionVariables = {
|
||
# clean up ~
|
||
LESSHISTFILE = cache + "/less/history";
|
||
LESSKEY = c + "/less/lesskey";
|
||
WINEPREFIX = d + "/wine";
|
||
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
||
|
||
# set default applications
|
||
EDITOR = "vim";
|
||
BROWSER = "firefox";
|
||
TERMINAL = "alacritty";
|
||
|
||
# enable scrolling in git diff
|
||
DELTA_PAGER = "less -R";
|
||
|
||
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
|
||
};
|
||
|
||
home.shellAliases = {
|
||
k = "kubectl";
|
||
};
|
||
} |