mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Upgrade to 25.11 (#25)
Reviewed-on: https://codeberg.org/leana8959/.files/pulls/25 Co-authored-by: Léana 江 <leana.jiang+git@icloud.com> Co-committed-by: Léana 江 <leana.jiang+git@icloud.com>
This commit is contained in:
parent
b7b2083c74
commit
b50954a4ef
27 changed files with 141 additions and 100 deletions
|
|
@ -1,28 +1,19 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# git plugins
|
||||
programs.git = {
|
||||
lfs.enable = true;
|
||||
patdiff.enable = lib.mkMerge [
|
||||
# known to fail on aarch64-linux
|
||||
(lib.mkIf (pkgs.system == "aarch64-linux") (
|
||||
# TODO: investigate this
|
||||
lib.warn "patdiff has been forcibly disabled because it has previously failed to build" lib.mkForce
|
||||
false
|
||||
))
|
||||
(lib.mkDefault true)
|
||||
];
|
||||
};
|
||||
programs.patdiff.enable = lib.mkDefault true;
|
||||
|
||||
# 懶惰鬼賴皮
|
||||
programs.lazygit =
|
||||
let
|
||||
patdiffCfg = config.programs.git.patdiff;
|
||||
patdiffCfg = config.programs.patdiff;
|
||||
in
|
||||
lib.mkIf patdiffCfg.enable {
|
||||
settings = {
|
||||
|
|
@ -32,7 +23,7 @@
|
|||
|
||||
# git itself
|
||||
programs.git = {
|
||||
extraConfig = {
|
||||
settings = {
|
||||
init.defaultBranch = "trunk"; # I like trees
|
||||
push.autoSetupRemote = true;
|
||||
pull.ff = "only";
|
||||
|
|
@ -60,9 +51,9 @@
|
|||
};
|
||||
|
||||
# identity
|
||||
programs.git = {
|
||||
userEmail = "leana.jiang+git@icloud.com";
|
||||
userName = "Léana 江";
|
||||
programs.git.settings = {
|
||||
user.email = "leana.jiang+git@icloud.com";
|
||||
user.name = "Léana 江";
|
||||
signing = {
|
||||
key = "0x4E887A4CA9714ADA";
|
||||
signByDefault = lib.mkDefault false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue