40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{
|
|
hostname,
|
|
lib,
|
|
...
|
|
}: {
|
|
programs = {
|
|
git =
|
|
{
|
|
enable = true;
|
|
lfs.enable = true;
|
|
settings =
|
|
{
|
|
user = {
|
|
name = "rogueking";
|
|
email = "miguel@muniz.org";
|
|
};
|
|
}
|
|
// lib.optionalAttrs (! (lib.elem hostname ["buildbox" "ender-ml"])) {
|
|
gpg = {
|
|
format = "ssh";
|
|
ssh = lib.optionalAttrs (hostname == "eva-02") {
|
|
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
|
|
};
|
|
};
|
|
};
|
|
}
|
|
// lib.optionalAttrs (! (lib.elem hostname ["buildbox" "ender-ml"])) {
|
|
signing = {
|
|
signByDefault = true;
|
|
signer =
|
|
if hostname == "eva-02"
|
|
then "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
|
|
else "/opt/1Password/op-ssh-sign";
|
|
|
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHI7zcxrwwg4VqpGduhPX31aslzXwkRXiM32+8K+aIMu";
|
|
};
|
|
};
|
|
};
|
|
}
|