2020-08-06 15:35:49 +00:00
|
|
|
# modules/shell/git.nix
|
|
|
|
# Git is great, Git is good, and it is not made out of wood.
|
|
|
|
# A version control system with the description of the closet furry behind the Linux kernel as the name.
|
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
options.modules.shell.git = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
2020-08-16 08:33:44 +00:00
|
|
|
|
|
|
|
config = mkOption {
|
|
|
|
type = types.submodule;
|
|
|
|
};
|
2020-08-06 15:35:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.modules.shell.git.enable {
|
2020-08-16 08:33:44 +00:00
|
|
|
modules.shell.git.config = mkAliasDefinitions options.programs.git;
|
2020-08-06 15:35:49 +00:00
|
|
|
};
|
|
|
|
}
|