diff --git a/nix/nixos-module/defaults.nix b/nix/nixos-module/defaults.nix index 3f54416..cadf55d 100644 --- a/nix/nixos-module/defaults.nix +++ b/nix/nixos-module/defaults.nix @@ -66,7 +66,24 @@ networking.hostName = hostName; - programs.fzf.keybindings = true; + programs = { + fzf.keybindings = true; + git = { + enable = true; + config = { + alias = { + co = "checkout"; + lg = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold y + ow)%d%C(reset)'"; + remote = "remote -v"; + st = "status"; + undo = "reset --soft HEAD^"; + }; + pull.rebase = true; + rebase.autoStash = true; + }; + }; + }; users.users.root.initialHashedPassword = "";