blob: efe4ab53bccd054ca8354e599865104e6926b935 (
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
29
30
|
{
config,
options,
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 {
# Marked as broken
#home-manager.users.${username}.programs.anki = {
#enable = true;
#style = "native";
#addons = with pkgs.ankiAddons; [
# anki-connect
# review-heatmap
#];
#};
};
}
|