home/xin: add modern unix tools and alias
This commit is contained in:
parent
dacd22b7d2
commit
2f31395fb3
4 changed files with 31 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
17
home/xin/common/modern-unix.nix
Normal file
17
home/xin/common/modern-unix.nix
Normal 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
|
||||
];
|
||||
}
|
|
@ -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
|
||||
"";
|
||||
|
|
|
@ -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"; };
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue