feat: nixos configs & docs

This commit is contained in:
Ryan Yin
2023-04-23 01:30:45 +08:00
committed by ryan4yin
parent 13efbb259e
commit 699f541539
74 changed files with 16056 additions and 1 deletions

35
home/shell/default.nix Normal file
View File

@@ -0,0 +1,35 @@
{config, ...}: let
d = config.xdg.dataHome;
c = config.xdg.configHome;
cache = config.xdg.cacheHome;
in {
imports = [
./nushell
./common.nix
./starship.nix
./terminals.nix
];
# add environment variables
home.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";
};
}