mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
added git config defaults and overrides
This commit is contained in:
parent
69ab4faed2
commit
c81dbe25ed
3 changed files with 52 additions and 17 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{lib, pkgs, ...}: {
|
||||
home.enableNixpkgsReleaseCheck = false;
|
||||
|
||||
xdg.enable = true;
|
||||
|
|
@ -42,6 +42,38 @@
|
|||
yaml-language-server
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Default author info
|
||||
author = lib.mkDefault {
|
||||
email = "tyler@mayoff.ca";
|
||||
name = "Tyler Mayoff";
|
||||
};
|
||||
|
||||
user = lib.mkDefault {
|
||||
email = "tyler@mayoff.ca";
|
||||
name = "Tyle Mayoff";
|
||||
};
|
||||
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
|
||||
core = {
|
||||
excludesFile = "~/.config/git/ignore";
|
||||
};
|
||||
|
||||
pull = {
|
||||
rebase = true;
|
||||
};
|
||||
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.nh;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,28 @@
|
|||
../../modules/darwin/PaperWM.spoon
|
||||
];
|
||||
|
||||
# xdg.enable = lib.mkForce false;
|
||||
|
||||
targets.darwin.linkApps.enable = false;
|
||||
targets.darwin.copyApps.enable = true;
|
||||
|
||||
programs.git = {
|
||||
lfs.enable = true;
|
||||
settings = {
|
||||
author = {
|
||||
email = "tyler.mayoff@hingehealth.com";
|
||||
name = "Tyler Mayoff";
|
||||
};
|
||||
|
||||
gpg.format = "ssh";
|
||||
commit.gpgsign = true;
|
||||
|
||||
user = {
|
||||
email = "tyler.mayoff@hingehealth.com";
|
||||
name = "Tyle Mayoff";
|
||||
signingkey = "~/.ssh/id_ed25519.pub";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home = {
|
||||
username = "tyler.mayoff";
|
||||
# homeDirectory = /Users/tyler.mayoff;
|
||||
|
|
@ -54,22 +71,8 @@
|
|||
file.".gnupg/gpg-agent.conf".text = ''
|
||||
pinentry-program ${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac
|
||||
'';
|
||||
|
||||
file.".config/sketchybar/sketchybarrc" = {
|
||||
executable = true;
|
||||
text = ''
|
||||
#!/usr/bin/env lua
|
||||
|
||||
package.cpath = package.cpath .. ";${pkgs.sbarlua}/lib/lua/5.4/sketchybar.so"
|
||||
|
||||
-- Load the sketchybar-package and prepare the helper binaries
|
||||
require("helpers")
|
||||
require("init")
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue