Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/42willow/flake. my system configurations ^-^ 42willow.github.io/flake
home-manager nix nixos
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, osConfig, config, ...}: let cfg = osConfig.settings.programs;in { config = lib.mkIf (cfg.cli.enable && cfg.categories.core.enable) { programs.git = { enable = true; lfs.enable = true;
userName = "willow"; userEmail = "42willow" + "@" + "pm.me";
extraConfig = { init.defaultBranch = "main"; credential.helper = "store";
pull = { rebase = true; ff = "only"; }; push = { autoSetupRemote = true; }; rebase = { autoSquash = true; autoStash = true; }; merge = { ff = "only"; };
# prevent data corruption transfer.fsckObjects = true; fetch.fsckObjects = true; receive.fsckObjects = true;
# commit signing commit.gpgsign = true; gpg.format = "ssh"; user.signingkey = osConfig.age.secrets.gh.path; gpg.ssh.allowedSignersFile = "${config.home.homeDirectory}/.ssh/allowed_signers"; };
aliases = { co = "checkout"; br = "branch"; ci = "commit"; st = "status"; aa = "add"; aliases = "config --get-regexp '^alias\\.'"; }; }; programs.gh.enable = true; };}