Compare commits
2 Commits
e6d6e08621
...
ed980b89cd
Author | SHA1 | Date |
---|---|---|
Nathan McCarty | ed980b89cd | |
Nathan McCarty | 62c1d1c50d |
|
@ -66,6 +66,13 @@ with lib; {
|
|||
tmate
|
||||
];
|
||||
})
|
||||
(mkIf (config.nathan.programs.util.git.enable
|
||||
&& config.nathan.programs.util.git.gpgSign) {
|
||||
programs.git.signing = {
|
||||
key = lib.mkDefault "B7A40A5D78C08885";
|
||||
signByDefault = lib.mkDefault config.nathan.programs.util.git.gpgSign;
|
||||
};
|
||||
})
|
||||
(mkIf config.nathan.programs.util.git.enable {
|
||||
# Git adjacent packages
|
||||
home.packages = [
|
||||
|
@ -80,7 +87,7 @@ with lib; {
|
|||
userName = "Nathan McCarty";
|
||||
userEmail = "nathan@mccarty.io";
|
||||
signing = {
|
||||
key = "B7A40A5D78C08885";
|
||||
key = lib.mkDefault "B7A40A5D78C08885";
|
||||
signByDefault = config.nathan.programs.util.git.gpgSign;
|
||||
};
|
||||
ignores = [
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
# Setup WSL
|
||||
wsl = {
|
||||
enable = true;
|
||||
automountPath = "/mnt";
|
||||
defaultUser = "nathan";
|
||||
startMenuLaunchers = true;
|
||||
};
|
||||
|
|
|
@ -22,4 +22,12 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
# Setup git commit signing with ssh key
|
||||
programs.git = {
|
||||
extraConfig = {
|
||||
commit.gpgsign = true;
|
||||
gpg.format = "ssh";
|
||||
user.signingkey = "~/.ssh/id_ed25519.pub";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue