lib: use generators from Nixpkgs
This commit is contained in:
parent
3e4f7228a0
commit
61042c7606
5 changed files with 9 additions and 102 deletions
|
|
@ -6,8 +6,6 @@ let
|
|||
|
||||
cfg = config.programs.git;
|
||||
|
||||
toINI = (import ../lib/generators.nix).toINI {};
|
||||
|
||||
signModule = types.submodule {
|
||||
options = {
|
||||
key = mkOption {
|
||||
|
|
@ -93,7 +91,8 @@ in
|
|||
{
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
home.file.".gitconfig".text = toINI ini + "\n" + cfg.extraConfig;
|
||||
home.file.".gitconfig".text =
|
||||
generators.toINI {} ini + "\n" + cfg.extraConfig;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue