aboutsummaryrefslogtreecommitdiff
path: root/modules/programs/anki.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/programs/anki.nix')
-rw-r--r--modules/programs/anki.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/programs/anki.nix b/modules/programs/anki.nix
new file mode 100644
index 0000000..9f21e66
--- /dev/null
+++ b/modules/programs/anki.nix
@@ -0,0 +1,27 @@
+{
+ flake.modules.homeManager.anki =
+ {
+ pkgs,
+ config,
+ osConfig,
+ ...
+ }:
+ {
+ programs.anki = {
+ enable = true;
+ style = "native";
+ theme = "followSystem";
+ profiles."User 1" = {
+ sync = {
+ autoSync = true;
+ syncMedia = true;
+ usernameFile = osConfig.sops.secrets.anki_username.path;
+ keyFile = osConfig.sops.secrets.anki_syncKey.path;
+ };
+ };
+ addons = with pkgs.ankiAddons; [
+ review-heatmap
+ ];
+ };
+ };
+}