Crypto : Add GNUPGHOME tmpfs template.
This commit is contained in:
parent
ce54cac532
commit
f30d0d230f
|
@ -10,6 +10,11 @@
|
||||||
# Extra packages.
|
# Extra packages.
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
yubikey-manager # Yubikey Manager.
|
yubikey-manager # Yubikey Manager.
|
||||||
yubioath-desktop # OTP.
|
# yubioath-desktop # OTP.
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Store GPG data on tmpfs.
|
||||||
|
environment.variables = {
|
||||||
|
# GNUPGHOME = "$(mktemp -d -t gnupg-$(date +%Y-%m-%d)-XXXXXXXXXX)";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }: {
|
{ secret, ... }: {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
|
@ -7,6 +7,8 @@
|
||||||
pull.rebase = true;
|
pull.rebase = true;
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
rebase.autoStash = true;
|
rebase.autoStash = true;
|
||||||
|
user.signingkey = secret.crypto.sign.key;
|
||||||
|
gpg.format = secret.crypto.sign.format;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,4 +7,14 @@
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBL5NAm8S97EtfB/7DPf5Xl3Cqi3PlSO1V0m7fknNzz root@laptop"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBL5NAm8S97EtfB/7DPf5Xl3Cqi3PlSO1V0m7fknNzz root@laptop"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL2LI1iFDZC223aWqBVz9yusfB/XrRwsBKiL5warIF/ nix-on-droid@phone"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL2LI1iFDZC223aWqBVz9yusfB/XrRwsBKiL5warIF/ nix-on-droid@phone"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
crypto = {
|
||||||
|
sign = {
|
||||||
|
format = "ssh";
|
||||||
|
key = "";
|
||||||
|
};
|
||||||
|
publicKeys = [
|
||||||
|
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue