flake/users/guanranwang/home-manager/profiles/command-line/resources/common/default.nix
2023-11-29 20:08:07 +08:00

33 lines
787 B
Nix

{pkgs, ...}: {
imports = [
../../../../applications/git
../../../../applications/starship
../../../../applications/eza
../../../../applications/skim
../../../../applications/bat
];
home.shellAliases = {
".." = "cd ..";
"farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb
# proxy
"setproxy" = let
proxy = "http://127.0.0.1:7890/";
in "export http_proxy=${proxy} https_proxy=${proxy} ftp_proxy=${proxy} rsync_proxy=${proxy}";
"unsetproxy" = "set -e http_proxy https_proxy all_proxy"; # fish syntax (?)
};
home.packages = with pkgs; [
wget
fd
hyperfine
];
programs = {
tealdeer.enable = true;
zoxide.enable = true;
bottom.enable = true;
joshuto.enable = true;
ripgrep.enable = true;
};
}