Skip to content
Discussion options

You must be logged in to vote

It is not documented yet (#171 (comment)), but you can use defaults.settings.{all,local,defined} for this.

See

settings.local = mkOption {
type = types.deferredModule;
description = ''
Default settings for packages local to the current project.
'';
apply = settings:
if config.defaults.enable then
{ package, ... }:
lib.optionalAttrs (package.local.toCurrentProject or false) {
imports = [
settings
];
}
else { };
default = { };
};
settings.defined = mkOption {
type = types.deferredModule;
description = ''

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@srid
Comment options

srid Nov 10, 2025
Maintainer

@khazaddum
Comment options

Answer selected by khazaddum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants