23 lines
521 B
Nix
23 lines
521 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
userPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII1DsMfyMUK0snbTeVWMmdzLP9NIvPoQ4tjqyREUMHwZ mail@lukas.contact";
|
|
in {
|
|
home.file.".ssh/allowed_signers".text = "* ${userPubKey}";
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "Lukas";
|
|
userEmail = "mail@lukas.contact";
|
|
extraConfig = {
|
|
commit.gpgsign = true;
|
|
gpg.format = "ssh";
|
|
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
|
user.signingkey = "~/.ssh/id_ed25519.pub";
|
|
};
|
|
};
|
|
}
|
|
|
|
|
|
|
|
|