Skip to content

Commit

Permalink
further mkEnableWallpaper adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Flameopathic committed Jan 6, 2025
1 parent 51d618b commit 0a305ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stylix/target.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@
mkEnableWallpaper =
humanName:
autoEnable:
lib.mkEnableOption
"wallpaper for ${humanName}"
// {
lib.mkOption {
default = (config.stylix.image != null) && autoEnable;
example = config.stylix.image == null;
description = "Whether to set the wallpaper for ${humanName}";
}
// lib.optionalAttrs autoEnable {
defaultText = lib.literalMD "same as setting `stylix.image`";
Expand Down

0 comments on commit 0a305ef

Please sign in to comment.