feat(anki): init

This commit is contained in:
2025-10-30 15:44:32 -06:00
parent 86305b65b4
commit 9b1777363f
4 changed files with 44 additions and 10 deletions

View File

@@ -0,0 +1,33 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.users.crumb.anki;
in {
options.sydnix.users.crumb.anki = {
enable = lib.mkEnableOption "Anki desktop";
};
config = lib.mkIf cfg.enable {
sydnix.impermanence.directories = [
".local/share/Anki2"
];
sydnix.sops.secrets = {
anki-sync-key = {};
anki-username = {};
};
programs.anki = {
enable = true;
addons = with pkgs.ankiAddons; [
review-heatmap
];
sync = {
autoSync = true;
syncMedia = true;
url = "https://anki.deertopia.net/";
usernameFile = config.sops.secrets.anki-username.path;
passwordFile = config.sops.secrets.anki-sync-key.path;
};
};
};
}