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
|
@ -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
Add a link
Reference in a new issue