Several changes:
- gpg working in darwin - new git full package - git settings for darwin (using different account) - updaded techinque to detect host platform
This commit is contained in:
parent
8fe4fdfcbc
commit
4d356b3a06
4 changed files with 27 additions and 6 deletions
|
@ -1,19 +1,33 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
config =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then {
|
||||
name = "Andrea Ciceri";
|
||||
email = "andrea.ciceri@beatdata.it";
|
||||
} else {
|
||||
name = "Andrea Ciceri";
|
||||
email = "andrea.ciceri@autistici.org";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
|
||||
extraConfig = {
|
||||
pull.rebase = false;
|
||||
};
|
||||
|
||||
userName = "aciceri";
|
||||
userEmail = "andrea.ciceri@autistici.org";
|
||||
userName = config.name;
|
||||
userEmail = config.email;
|
||||
signing = {
|
||||
signByDefault = true;
|
||||
key = "andrea.ciceri@autistici.org";
|
||||
key = config.email;
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
url = {
|
||||
url = if pkgs.stdenv.hostPlatform.isDarwin then { } else {
|
||||
"ssh://git@github.com/" = { insteadOf = https://github.com/; };
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue