Initial commit
This commit is contained in:
29
modules/global/git.nix
Normal file
29
modules/global/git.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user