From 9a5e6cb7f6940a5a023bcbd7839ed2efa527b924 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 24 May 2024 13:44:01 +0800 Subject: [PATCH] bahaghari/utils: move into separate folder --- subprojects/bahaghari/utils/README.adoc | 8 ++++++++ subprojects/bahaghari/{lib => }/utils/default.nix | 0 subprojects/bahaghari/{lib => }/utils/tinted-theming.nix | 0 3 files changed, 8 insertions(+) create mode 100644 subprojects/bahaghari/utils/README.adoc rename subprojects/bahaghari/{lib => }/utils/default.nix (100%) rename subprojects/bahaghari/{lib => }/utils/tinted-theming.nix (100%) diff --git a/subprojects/bahaghari/utils/README.adoc b/subprojects/bahaghari/utils/README.adoc new file mode 100644 index 00000000..5b42361a --- /dev/null +++ b/subprojects/bahaghari/utils/README.adoc @@ -0,0 +1,8 @@ += Utilities +:toc: + +Bahaghari separates its function set as either part of the library subset or utilities subset patterned after the NixOS environment of adding `utils` module argument. +The main difference between these two is the utilities subset depends on the environment configuration (for example, using `config.bahaghari.tinted-theming.schemes`) while those in library subset does not. +We just separate these for easier maintenance. + +Just like the library subset, these are expected to be included as a module argument modularly so there should be no functions that generates Nix modules or anything that requires `bahagariUtils` to be fully evaluated (such as putting it in `imports` top-level module attribute). diff --git a/subprojects/bahaghari/lib/utils/default.nix b/subprojects/bahaghari/utils/default.nix similarity index 100% rename from subprojects/bahaghari/lib/utils/default.nix rename to subprojects/bahaghari/utils/default.nix diff --git a/subprojects/bahaghari/lib/utils/tinted-theming.nix b/subprojects/bahaghari/utils/tinted-theming.nix similarity index 100% rename from subprojects/bahaghari/lib/utils/tinted-theming.nix rename to subprojects/bahaghari/utils/tinted-theming.nix