modules: flatten single-attribute set declarations

This commit is contained in:
NAHO 2025-11-21 19:05:21 +01:00
parent bd00e01aab
commit a4ffbc20ea
No known key found for this signature in database
GPG key ID: BFB5D5E3F4C95185
4 changed files with 7 additions and 15 deletions

View file

@ -3,9 +3,7 @@ mkTarget {
name = "cava";
humanName = "CAVA";
extraOptions = {
rainbow.enable = lib.mkEnableOption "rainbow gradient theming";
};
extraOptions.rainbow.enable = lib.mkEnableOption "rainbow gradient theming";
configElements =
{ cfg, colors }:

View file

@ -8,9 +8,7 @@ mkTarget {
name = "hyprlock";
humanName = "Hyprlock";
extraOptions = {
useWallpaper = config.lib.stylix.mkEnableWallpaper "Hyprlock" true;
};
extraOptions.useWallpaper = config.lib.stylix.mkEnableWallpaper "Hyprlock" true;
configElements = [
(

View file

@ -8,9 +8,7 @@ mkTarget {
name = "lightdm";
humanName = "LightDM";
extraOptions = {
useWallpaper = config.lib.stylix.mkEnableWallpaper "LightDM" true;
};
extraOptions.useWallpaper = config.lib.stylix.mkEnableWallpaper "LightDM" true;
configElements =
{ cfg, image }:

View file

@ -4,12 +4,10 @@ mkTarget {
name = "yazi";
humanName = "Yazi";
extraOptions = {
boldDirectory = lib.mkOption {
description = "Whether to use bold font for directories.";
type = lib.types.bool;
default = true;
};
extraOptions.boldDirectory = lib.mkOption {
description = "Whether to use bold font for directories.";
type = lib.types.bool;
default = true;
};
configElements =