From 3787bf2e68a457912033bc4244eb4c448ad0cdb1 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 7 Feb 2023 19:06:18 +0800 Subject: [PATCH] users/foo-dogsquared: add SSH and GPG client configurations --- users/home-manager/foo-dogsquared/default.nix | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/users/home-manager/foo-dogsquared/default.nix b/users/home-manager/foo-dogsquared/default.nix index aef70e79..cd02fc1b 100644 --- a/users/home-manager/foo-dogsquared/default.nix +++ b/users/home-manager/foo-dogsquared/default.nix @@ -47,6 +47,40 @@ in fi ''; + # My SSH client configuration. It is encouraged to keep matches and extra + # configurations included in a separate `config.d/` directory. This enables + # it to easily backup the certain files which is most likely what we're + # mostly configuring anyways. + programs.ssh = { + enable = true; + includes = [ "config.d/*" ]; + extraConfig = '' + AddKeysToAgent confirm 15m + ForwardAgent no + ''; + }; + + # My GPG client. It has to make sure the keys are not generated and has to be + # backed up somewhere. + # + # If you want to know how to manage GPG PROPERLY for the nth time, read the + # following document: + # https://alexcabal.com/creating-the-perfect-gpg-keypair + programs.gpg = { + enable = true; + + # This is just made to be a starting point, per se. + mutableKeys = true; + mutableTrust = true; + + settings = { + default-key = "0xADE0C41DAB221FCC"; + keyid-format = "0xlong"; + with-fingerprint = true; + no-comments = false; + }; + }; + # My Git credentials. programs.git = { enable = true;