home/xin: add modern unix tools and alias

This commit is contained in:
xinyangli 2024-12-10 12:41:17 +08:00
parent dacd22b7d2
commit 2f31395fb3
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
4 changed files with 31 additions and 7 deletions

View file

@ -5,13 +5,12 @@
... ...
}: }:
{ {
imports = [ ]; imports = [
./modern-unix.nix
];
home.packages = with pkgs; [ home.packages = with pkgs; [
dig dig
du-dust # du + rust
zoxide # autojumper
ripgrep
file file
man-pages man-pages
unar unar
@ -19,7 +18,6 @@
wget wget
tmux tmux
ffmpeg ffmpeg
tealdeer
rclone rclone
wl-clipboard wl-clipboard

View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
httpie
curlie
bat
htop
procs
rust-parallel
jq
fd
du-dust # du + rust
zoxide # autojumper
ripgrep
tealdeer
];
}

View file

@ -91,6 +91,10 @@ in
${pkgs.comma}/bin/comma $argv ${pkgs.comma}/bin/comma $argv
end end
set -gx LS_COLORS (${lib.getExe pkgs.vivid} generate catppuccin-mocha) set -gx LS_COLORS (${lib.getExe pkgs.vivid} generate catppuccin-mocha)
alias ctlsp="systemctl stop"
alias ctlst="systemctl start"
alias ctlrt="systemctl restart"
alias ctls="systemctl status"
'' ''
else else
""; "";

View file

@ -25,8 +25,9 @@ in
}; };
}; };
}; };
config = { config = mkIf cfg.enable {
programs.git = mkIf cfg.enable { home.packages = [ pkgs.git-absorb ];
programs.git = {
enable = true; enable = true;
delta.enable = true; delta.enable = true;
userName = "Xinyang Li"; userName = "Xinyang Li";
@ -42,6 +43,10 @@ in
signByDefault = true; signByDefault = true;
key = cfg.signing.keyFile; key = cfg.signing.keyFile;
}; };
extraConfig.absorb = {
oneFixupPerCommit = true;
maxStack = 20;
};
extraConfig.user = mkIf cfg.signing.enable { signingkey = cfg.signing.keyFile; }; extraConfig.user = mkIf cfg.signing.enable { signingkey = cfg.signing.keyFile; };
extraConfig.gpg = mkIf cfg.signing.enable { format = "ssh"; }; extraConfig.gpg = mkIf cfg.signing.enable { format = "ssh"; };
}; };