blob: 58d8f4962897c4bacb4e2ea283ed448a5a026c39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{
config,
lib,
...
}:
let
cfg = config.nx.productivity.anki;
inherit (lib) mkOption types mkIf;
in
{
options.nx.productivity.anki = {
enable = mkOption {
description = "Anki free and open-source flashcard program";
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
programs.anki = {
enable = true;
#style = "native";
#addons = with pkgs.ankiAddons; [
# anki-connect
# review-heatmap
#];
};
};
}
|