[nix] Start managing the git config

This commit is contained in:
Alyxia Sother 2023-06-09 12:47:04 +02:00
parent 269924cae9
commit f4619def12
No known key found for this signature in database
GPG Key ID: 01E16C4E775A37E4
2 changed files with 31 additions and 1 deletions

View File

@ -14,7 +14,10 @@
outputs = { self, nixpkgs, home-manager, darwin }: {
darwinConfigurations."alymac" = darwin.lib.darwinSystem {
system = "x86_64-darwin";
modules = [ ./hosts/alymac/default.nix ];
modules = [
home-manager.darwinModules.home-manager
./hosts/alymac/default.nix
];
};
};
}

View File

@ -17,6 +17,33 @@
# enable the gpg agent by default
programs.gnupg.agent.enable = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.alyxia = { pkgs, ... }: {
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull; # contains git send-email et al
userName = "Alyxia Sother";
userEmail = "alyxia@riseup.net";
signing = {
key = "01E16C4E775A37E4";
signByDefault = true;
};
delta.enable = true;
};
programs.gitui.enable = true;
# DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS
# OPTION IS APPROPRIATELY MIGRATED!!!
home.stateVersion = "23.05"; # did you read the comment?
};
};
homebrew = {
enable = true;
onActivation = {