-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d1ba30
commit 8d1615d
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ config, lib, libS, ... }: | ||
|
||
let | ||
cfg = config.services.renovate; | ||
in | ||
{ | ||
options.services.renovate = lib.optionalAttrs (!lib.versionAtLeast lib.version "24.11") { | ||
# TODO: clean up when updating to 24.11 | ||
enable = lib.mkOption { | ||
type = lib.types.bool; | ||
default = false; | ||
internal = !(lib.versionAtLeast lib.version "24.11"); | ||
}; | ||
settings = lib.mkOption { | ||
type = lib.types.freeformSetting; | ||
internal = !(lib.versionAtLeast lib.version "24.11"); | ||
}; | ||
} // { | ||
recommendedDefaults = libS.mkOpinionatedOption "set recommended default settings"; | ||
}; | ||
|
||
config = lib.mkIf cfg.enable { | ||
services.renovate.settings = { | ||
cachePrivatePackages = true; | ||
configMigration = true; | ||
optimizeForDisabled = true; | ||
persistRepoData = true; | ||
repositoryCache = "enabled"; | ||
}; | ||
}; | ||
} |