mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 07:24:10 +01:00
44 lines
929 B
Nix
44 lines
929 B
Nix
{config, ...}: let
|
|
d = config.xdg.dataHome;
|
|
c = config.xdg.configHome;
|
|
cache = config.xdg.cacheHome;
|
|
in rec {
|
|
imports = [
|
|
./nushell
|
|
./common.nix
|
|
./starship.nix
|
|
./terminals.nix
|
|
];
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
bashrcExtra = ''
|
|
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
|
|
'';
|
|
};
|
|
|
|
# add environment variables
|
|
systemd.user.sessionVariables = {
|
|
# clean up ~
|
|
LESSHISTFILE = cache + "/less/history";
|
|
LESSKEY = c + "/less/lesskey";
|
|
WINEPREFIX = d + "/wine";
|
|
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
|
|
|
# set default applications
|
|
BROWSER = "firefox";
|
|
TERMINAL = "alacritty";
|
|
|
|
# enable scrolling in git diff
|
|
DELTA_PAGER = "less -R";
|
|
|
|
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
|
|
};
|
|
|
|
home.sessionVariables = systemd.user.sessionVariables;
|
|
|
|
home.shellAliases = {
|
|
k = "kubectl";
|
|
};
|
|
} |