34 lines
787 B
Nix
34 lines
787 B
Nix
{...}: {
|
|
config.flake.overlayPkgs.emacs-lichess = pkgs: let
|
|
epkgs = pkgs.emacs.pkgs;
|
|
in
|
|
epkgs.trivialBuild {
|
|
pname = "lichess";
|
|
version = "0.8";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "tmythicator";
|
|
repo = "lichess.el";
|
|
rev = "1dd8a25ede7144c5d6be1f45f4ae3d07903783cd";
|
|
sha256 = "157l4crbz37x367m69sxwvnd1pd8cqa6w0lcvyyvs27cm021d2gr";
|
|
};
|
|
};
|
|
|
|
config.flake.modules.homeManager.chess = {
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
options.azos.chess.enable = lib.mkOption {
|
|
default = false;
|
|
example = true;
|
|
type = lib.types.bool;
|
|
};
|
|
|
|
config = lib.mkIf config.azos.chess.enable {
|
|
azos.emacs.pkgs = [pkgs.emacs-lichess];
|
|
azos.emacs.enabledSuites = ["lichess"];
|
|
};
|
|
};
|
|
}
|