diff --git a/users/ellmau/conf/gh/config.yml b/users/ellmau/conf/gh/config.yml new file mode 100644 index 0000000..d0d2f3a --- /dev/null +++ b/users/ellmau/conf/gh/config.yml @@ -0,0 +1 @@ +{"aliases":{},"editor":"","git_protocol":"ssh", "prompt":"enabled"} diff --git a/users/ellmau/git.nix b/users/ellmau/git.nix index d2c708c..327396d 100644 --- a/users/ellmau/git.nix +++ b/users/ellmau/git.nix @@ -1,19 +1,31 @@ { config, pkgs, ...}: { - programs.git = { - enable = true; - package = pkgs.gitAndTools.gitFull; - userName = "Stefan Ellmauthaler"; - userEmail = "stefan.ellmauthaler@tu-dresden.de"; - extraConfig = { - core = { editor = "emacsclient"; }; - gpg = { - format = "x509"; - program = "gpgsm"; + programs= { + git = { + enable = true; + package = pkgs.gitAndTools.gitFull; + userName = "Stefan Ellmauthaler"; + userEmail = "stefan.ellmauthaler@tu-dresden.de"; + extraConfig = { + core = { editor = "emacsclient"; }; + gpg = { + format = "x509"; + program = "gpgsm"; + }; + user = { signingKey = "0x4998BEEE"; }; + init = { defaultBranch = "main";}; + branch = { autosetuprebase = "always";}; }; - user = { signingKey = "0x4998BEEE"; }; - init = { defaultBranch = "main";}; - branch = { autosetuprebase = "always";}; + }; + + gh = { + enable = true; + }; + }; + + xdg = { + configFile."gh/config.yml" = { + source = conf/gh/config.yml; }; }; } diff --git a/users/ellmau/home.nix b/users/ellmau/home.nix index ba7d992..6e600b4 100644 --- a/users/ellmau/home.nix +++ b/users/ellmau/home.nix @@ -22,8 +22,6 @@ pkgs.nixpkgs-fmt pkgs.nix-prefetch-github - pkgs.gh - pkgs.neofetch pkgs.jitsi-meet-electron