nixos-config/modules/shell/git.nix
2020-08-16 16:33:44 +08:00

23 lines
548 B
Nix
Executable File

# 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;
};
config = mkOption {
type = types.submodule;
};
};
config = mkIf config.modules.shell.git.enable {
modules.shell.git.config = mkAliasDefinitions options.programs.git;
};
}