Fix wrong JSON type label in options

This commit is contained in:
benvonh
2024-12-24 02:29:16 +10:00
parent 5b2a32eb0d
commit 15454e2e99

View File

@@ -4,6 +4,8 @@ let
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 = ''
{ {