nix/modules/stuff/git.nix

24 lines
581 B
Nix
Raw Normal View History

2024-08-01 21:22:47 +02:00
{ lib, pkgs, config, ...}: let
inherit (lib) mkIf mkEnableOption mkOption;
cfg = config.chuj.stuff.git;
user = config.chuj.system.user;
in {
options.chuj.stuff.git = {
enable = mkEnableOption "git";
};
config = {
environment.systemPackages = [ pkgs.git ];
home-manager.users.${user}.programs.git = {
enable = true;
userName = "krizej";
userEmail = "krizej@protonmail.com";
extraConfig.init.defaultBranch = "master";
2024-08-02 00:14:06 +02:00
ignores = [
".idea/"
"build/"
".venv/"
"**/__pycache__/"
];
2024-08-01 21:22:47 +02:00
};
};
}