From d2370bdbb8b585e8fd7e77a80a054e5e06efe717 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 1 Mar 2024 18:12:12 +0800 Subject: [PATCH] bahaghari/modules/tinted-theming: make it consistent for YAML files importing --- subprojects/bahaghari/modules/tinted-theming/schemes.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/bahaghari/modules/tinted-theming/schemes.nix b/subprojects/bahaghari/modules/tinted-theming/schemes.nix index d611653c..b9fd2ea8 100644 --- a/subprojects/bahaghari/modules/tinted-theming/schemes.nix +++ b/subprojects/bahaghari/modules/tinted-theming/schemes.nix @@ -7,6 +7,8 @@ let bahaghariLib = import ../../lib { inherit pkgs; }; inherit (bahaghariLib.tinted-theming) isBase24 isBase16; + settingsFormat = pkgs.formats.yaml { }; + # This follows the schema of a Tinted Theming scheme. Its support for legacy # Base16 theme is pretty awful for now. Anyways. this would allow a simple # `bahaghariLib.importYAML` and wam-bam-thank-you-mam. @@ -16,7 +18,7 @@ let schemeType = { name, config, lib, ... }: { # This would allow extensions to the schema if the scheme author or the # user wants to add some. - freeformType = with lib.types; attrsOf anything; + freeformType = settingsFormat.type; options = { # The builder will be the one to detect these properly. Though, we could