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; [
dig
du-dust # du + rust
zoxide # autojumper
ripgrep
file
man-pages
unar
@ -19,7 +18,6 @@
wget
tmux
ffmpeg
tealdeer
rclone
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
end
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
"";

View file

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