1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00
This commit is contained in:
Théo Zimmermann 2024-04-25 14:34:54 +00:00 committed by GitHub
commit 671e43e8fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,6 +50,9 @@ let
// optionalAttrs (!cfg.enableUpdateCheck) { "update.mode" = "none"; }
// optionalAttrs (!cfg.enableExtensionUpdateCheck) {
"extensions.autoCheckUpdates" = false;
} // optionalAttrs (!cfg.enableExtensionUpdate) {
"extensions.autoUpdate" = false;
"extensions.autoCheckUpdates" = false;
};
in {
imports = [
@ -82,6 +85,15 @@ in {
'';
};
enableExtensionUpdate = mkOption {
type = types.bool;
default = true;
description = ''
Whether to enable automatic extension updates.
Disabling this also disables update checks.
'';
};
enableExtensionUpdateCheck = mkOption {
type = types.bool;
default = true;