From 2256b7d74bf2aec90d5c4e9acc7954ccb9cf34cf Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Sat, 4 Jan 2025 16:34:27 +0100 Subject: [PATCH] micro: init (#716) Initialize the micro module. Extending the 'simple' theme is possible by adding 'include "simple"' to the user configuration. [1] [1]: https://github.com/danth/stylix/issues/714#issuecomment-2569808086 Closes: https://github.com/danth/stylix/issues/714 Link: https://github.com/danth/stylix/pull/716 Approved-by: https://github.com/LemmusLemmus Approved-by: https://github.com/matkijahenkilo --- modules/micro/hm.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/micro/hm.nix diff --git a/modules/micro/hm.nix b/modules/micro/hm.nix new file mode 100644 index 000000000..fd1639571 --- /dev/null +++ b/modules/micro/hm.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + ... +}: { + options.stylix.targets.micro.enable = + config.lib.stylix.mkEnableTarget "micro" true; + + config = + lib.mkIf + (config.stylix.enable && config.stylix.targets.micro.enable) + { + # TODO: Provide a real colorscheme once [1] is resolved. + # + # [1]: https://github.com/danth/stylix/issues/249 + programs.micro.settings.colorscheme = "simple"; + }; +}