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,8 +47,11 @@
|
|||
};
|
||||
git = {
|
||||
enable = true;
|
||||
userEmail = cfg.email;
|
||||
userName = cfg.name;
|
||||
settings.user = {
|
||||
inherit (cfg) email name;
|
||||
};
|
||||
lfs.enable = true;
|
||||
};
|
||||
delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
|
|
@ -57,8 +60,6 @@
|
|||
side-by-side = true;
|
||||
};
|
||||
};
|
||||
lfs.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
(lib.mkIf (cfg.signKey != null) {
|
||||
|
|
@ -69,7 +70,7 @@
|
|||
};
|
||||
})
|
||||
(lib.mkIf cfg.encrypt-credential {
|
||||
programs.git.extraConfig = {
|
||||
programs.git.settings = {
|
||||
credential = {
|
||||
helper = "store --file=${config.sops.secrets."git-credential".path}";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ in
|
|||
config = lib.mkMerge [
|
||||
(lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
delta
|
||||
watchman
|
||||
];
|
||||
programs.jujutsu = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue