Incorporate omarchy-nix.
This commit is contained in:
24
home/programs/desktop/git.nix
Normal file
24
home/programs/desktop/git.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
# ABOUTME: Git and GitHub CLI configuration
|
||||
# ABOUTME: Sets up git with user info and gh CLI integration
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
cfg = import ./config.nix;
|
||||
in
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user.name = cfg.user.fullName;
|
||||
user.email = cfg.user.email;
|
||||
credential.helper = "store";
|
||||
};
|
||||
};
|
||||
|
||||
programs.gh = {
|
||||
enable = true;
|
||||
gitCredentialHelper = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user