Fix wrong JSON type label in options
This commit is contained in:
@@ -3,6 +3,8 @@ let
|
|||||||
inherit (lib) types mkIf mkOption mkEnableOption;
|
inherit (lib) types mkIf mkOption mkEnableOption;
|
||||||
|
|
||||||
cfg = config.programs.hyprpanel;
|
cfg = config.programs.hyprpanel;
|
||||||
|
|
||||||
|
jsonFormat = pkgs.formats.json { };
|
||||||
|
|
||||||
# No package option
|
# No package option
|
||||||
package = self.packages.${pkgs.system}.default;
|
package = self.packages.${pkgs.system}.default;
|
||||||
@@ -13,7 +15,7 @@ let
|
|||||||
mkBoolOption = default: mkOption { type = types.bool; default = default; };
|
mkBoolOption = default: mkOption { type = types.bool; default = default; };
|
||||||
|
|
||||||
# TODO: Please merge https://github.com/Jas-SinghFSU/HyprPanel/pull/497
|
# TODO: Please merge https://github.com/Jas-SinghFSU/HyprPanel/pull/497
|
||||||
# Do not ask what this does...
|
# Do not ask what these do...
|
||||||
flattenAttrs = attrSet: prefix:
|
flattenAttrs = attrSet: prefix:
|
||||||
let
|
let
|
||||||
process = key: value:
|
process = key: value:
|
||||||
@@ -74,7 +76,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
layout = mkOption {
|
layout = mkOption {
|
||||||
type = lib.formats.json;
|
type = jsonFormat.type;
|
||||||
default = null;
|
default = null;
|
||||||
example = ''
|
example = ''
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user