30 lines
801 B
Nix
30 lines
801 B
Nix
{ pkgs, lib, ... }: {
|
|
hm.programs.git.enable = true;
|
|
environment.systemPackages = [ pkgs.git ];
|
|
|
|
hm.programs.git = {
|
|
userEmail = "thary@riseup.net";
|
|
userName = "Thary";
|
|
signing = {
|
|
signByDefault = true;
|
|
};
|
|
};
|
|
|
|
nodes.phoenix.hm = {
|
|
programs.git.extraConfig = {
|
|
commit.gpgsign = true;
|
|
gpg.format = "ssh";
|
|
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
|
user.signingkey = "~/.ssh/id_ed25519.pub";
|
|
};
|
|
home.file.".ssh/allowed_signers".text =
|
|
# "* ${builtins.readFile /home/${username}/.ssh/id_ed25519.pub}";
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDEDqpSiQpbSsClh6UGb7Z2DA1Hy+EyePzTy+5hEVD/A";
|
|
};
|
|
|
|
lib.n.misc.shellAliases = {
|
|
gc = "${lib.getExe pkgs.git} commit -m";
|
|
ga = "${lib.getExe pkgs.git} add";
|
|
};
|
|
}
|