Initial commit

This commit is contained in:
2025-08-20 18:24:02 +03:00
commit 2dec42d487
116 changed files with 6591 additions and 0 deletions

29
modules/global/git.nix Normal file
View 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";
};
}