mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
18 lines
343 B
Nix
18 lines
343 B
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.anki = {
|
|
enable = true;
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
ankiBaseDir =
|
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
|
"home-files/Library/Application Support/Anki2"
|
|
else
|
|
"home-files/.local/share/Anki2";
|
|
in
|
|
''
|
|
assertFileExists "${ankiBaseDir}/prefs21.db"
|
|
'';
|
|
}
|