feat(anki): add enable option

This commit is contained in:
hektor committed 2026-05-24 16:00:19 +02:00
1 parent 1158e855c2
commit 96c65fc991
4 files changed
+47 -29

No files matched your search

+13 -4
View File
@@ -1,6 +1,15 @@
{ lib, config, ... }:
let
cfg = config.anki;
in
{
config.secrets.groups.anki = [
"sync-user"
"sync-key"
];
options.anki.enable = lib.mkEnableOption "anki";
config = lib.mkIf cfg.enable {
secrets.groups.anki = [
"sync-user"
"sync-key"
];
};
}