2023-12-10 05:55:07 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
home = {
|
|
|
|
username = "guanranwang";
|
|
|
|
homeDirectory =
|
|
|
|
if pkgs.stdenv.hostPlatform.isDarwin
|
|
|
|
then "/Users/${config.home.username}"
|
|
|
|
else "/home/${config.home.username}";
|
|
|
|
|
|
|
|
# This value determines the Home Manager release that your
|
|
|
|
# configuration is compatible with. This helps avoid breakage
|
|
|
|
# when a new Home Manager release introduces backwards
|
|
|
|
# incompatible changes.
|
|
|
|
#
|
|
|
|
# You can update Home Manager without changing this value. See
|
|
|
|
# the Home Manager release notes for a list of state version
|
|
|
|
# changes in each release.
|
|
|
|
stateVersion = "23.05";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
# Default applications
|
|
|
|
imports = [
|
|
|
|
./modules
|
|
|
|
|
|
|
|
./applications/git
|
2024-01-01 13:31:28 +00:00
|
|
|
./applications/gpg
|
2023-12-10 05:55:07 +00:00
|
|
|
./applications/starship
|
|
|
|
./applications/eza
|
|
|
|
./applications/skim
|
|
|
|
./applications/bat
|
|
|
|
./applications/bottom
|
|
|
|
./applications/zoxide
|
|
|
|
./applications/ripgrep
|
|
|
|
./applications/wget
|
|
|
|
./applications/fd
|
|
|
|
./applications/hyperfine
|
|
|
|
|
|
|
|
./applications/ydict
|
2023-12-13 11:02:11 +00:00
|
|
|
#./applications/fastfetch # broken on x86_64-darwin, https://github.com/NixOS/nixpkgs/issues/273947
|
2023-12-10 05:55:07 +00:00
|
|
|
./applications/android-tools
|
|
|
|
./applications/tealdeer
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|