chore: Migrate git setting to newer nixpkgs module
This commit is contained in:
parent
61c886245a
commit
ab9d32bd6c
2 changed files with 11 additions and 11 deletions
|
|
@ -47,18 +47,19 @@
|
||||||
};
|
};
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userEmail = cfg.email;
|
settings.user = {
|
||||||
userName = cfg.name;
|
inherit (cfg) email name;
|
||||||
delta = {
|
|
||||||
enable = true;
|
|
||||||
options = {
|
|
||||||
line-number = true;
|
|
||||||
hyperlinks = true;
|
|
||||||
side-by-side = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
};
|
};
|
||||||
|
delta = {
|
||||||
|
enable = true;
|
||||||
|
options = {
|
||||||
|
line-number = true;
|
||||||
|
hyperlinks = true;
|
||||||
|
side-by-side = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
(lib.mkIf (cfg.signKey != null) {
|
(lib.mkIf (cfg.signKey != null) {
|
||||||
|
|
@ -69,7 +70,7 @@
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(lib.mkIf cfg.encrypt-credential {
|
(lib.mkIf cfg.encrypt-credential {
|
||||||
programs.git.extraConfig = {
|
programs.git.settings = {
|
||||||
credential = {
|
credential = {
|
||||||
helper = "store --file=${config.sops.secrets."git-credential".path}";
|
helper = "store --file=${config.sops.secrets."git-credential".path}";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@ in
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf cfg.enable {
|
(lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
delta
|
|
||||||
watchman
|
watchman
|
||||||
];
|
];
|
||||||
programs.jujutsu = {
|
programs.jujutsu = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue