20 lines
411 B
Nix
20 lines
411 B
Nix
{...}: {
|
|
config.flake.modules.homeManager.leetcode = {
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
options.azos.leetcode.enable = lib.mkOption {
|
|
default = false;
|
|
example = true;
|
|
type = lib.types.bool;
|
|
};
|
|
|
|
config = lib.mkIf config.azos.leetcode.enable {
|
|
azos.emacs.pkgs = [pkgs.azos-emacs-leetcode];
|
|
azos.emacs.enabledSuites = ["azos-emacs-leetcode"];
|
|
};
|
|
};
|
|
}
|