mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
git: add attributes support
This commit is contained in:
parent
3f45630180
commit
bb5c29107e
1 changed files with 11 additions and 0 deletions
|
@ -179,6 +179,13 @@ in
|
|||
description = "List of paths that should be globally ignored.";
|
||||
};
|
||||
|
||||
attributes = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
example = [ "*.pdf diff=pdf" ];
|
||||
description = "List of defining attributes set globally.";
|
||||
};
|
||||
|
||||
includes = mkOption {
|
||||
type = types.listOf includeModule;
|
||||
default = [];
|
||||
|
@ -226,6 +233,10 @@ in
|
|||
"git/ignore" = mkIf (cfg.ignores != []) {
|
||||
text = concatStringsSep "\n" cfg.ignores + "\n";
|
||||
};
|
||||
|
||||
"git/attributes" = mkIf (cfg.attributes != []) {
|
||||
text = concatStringsSep "\n" cfg.attributes + "\n";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue