mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-02 04:57:55 +00:00
23 lines
548 B
Nix
Executable File
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;
|
|
};
|
|
}
|