aboutsummaryrefslogtreecommitdiff
path: root/modules/programs/anki.nix
blob: cf53dce2756f68af6d4e54e26e5eb66000f2aecb (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
{
  flake.modules.homeManager.anki =
    {
      pkgs,
      ...
    }:
    {
      programs.anki = {
        enable = true;
        style = "native";
        theme = "followSystem";
        profiles."User 1" = {
          sync = {
            autoSync = true;
            syncMedia = true;
            usernameFile = "/run/secrets/anki_username";
            keyFile = "/run/secrets/anki_syncKey";
          };
        };
        addons = with pkgs.ankiAddons; [
          recolor
          review-heatmap
        ];
      };
    };
}