Modules/Color: Make auto-set options readOnly
This commit is contained in:
@ -72,6 +72,7 @@ in rec {
|
|||||||
in
|
in
|
||||||
lib.mkOption {
|
lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
|
readOnly = true;
|
||||||
description = "The available wallpapers";
|
description = "The available wallpapers";
|
||||||
default = wallpapers;
|
default = wallpapers;
|
||||||
};
|
};
|
||||||
@ -117,21 +118,25 @@ in rec {
|
|||||||
|
|
||||||
hex = lib.mkOption {
|
hex = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
|
readOnly = true;
|
||||||
description = "Colors in \"RRGGBB\" hexadecimal format";
|
description = "Colors in \"RRGGBB\" hexadecimal format";
|
||||||
};
|
};
|
||||||
|
|
||||||
hexS = lib.mkOption {
|
hexS = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
|
readOnly = true;
|
||||||
description = "Colors in \"#RRGGBB\" hexadecimal format";
|
description = "Colors in \"#RRGGBB\" hexadecimal format";
|
||||||
};
|
};
|
||||||
|
|
||||||
rgb = lib.mkOption {
|
rgb = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
|
readOnly = true;
|
||||||
description = "Colors in [RR GG BB] decimal format";
|
description = "Colors in [RR GG BB] decimal format";
|
||||||
};
|
};
|
||||||
|
|
||||||
rgbS = lib.mkOption {
|
rgbS = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
|
readOnly = true;
|
||||||
description = "Colors in \"RR,GG,BB\" decimal format";
|
description = "Colors in \"RR,GG,BB\" decimal format";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user