feat(git): enable the module per host rather than by default
Defaulting the module on hid it from a host's config, leaving no single place that lists what a host carries. Each host enables it explicitly instead, at the cost of a step when adding one.
This commit is contained in:
@@ -9,17 +9,8 @@ let
|
||||
user = config.user.name;
|
||||
in
|
||||
{
|
||||
options.modules.git.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Whether to configure git for the primary user, carrying the operator's
|
||||
commit identity.
|
||||
|
||||
On by default, so every host can commit without restating it. A host that
|
||||
should not carry a personal commit identity sets this to false.
|
||||
'';
|
||||
};
|
||||
options.modules.git.enable =
|
||||
lib.mkEnableOption "git for the primary user, carrying the operator's commit identity";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${user}.programs.git = {
|
||||
|
||||
Reference in New Issue
Block a user