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
This commit is contained in:
NAHO 2025-01-04 16:34:27 +01:00 committed by GitHub
parent fe25ebfdc9
commit 2256b7d74b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

18
modules/micro/hm.nix Normal file
View file

@ -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";
};
}