22 lines
297 B
Nix
22 lines
297 B
Nix
|
{
|
||
|
outputs,
|
||
|
options,
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
cfg = config.modules.desktop.apps.anki;
|
||
|
in {
|
||
|
options.modules.desktop.apps.anki = {
|
||
|
enable = lib.mkEnableOption false;
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
users.users.sako.packages = with pkgs; [
|
||
|
anki
|
||
|
];
|
||
|
};
|
||
|
}
|