system/spell-check: init

This commit is contained in:
Felix Buehler 2024-07-03 22:29:37 +02:00
parent 7863b3ee5c
commit 387eed714d
2 changed files with 20 additions and 0 deletions

View file

@ -6,5 +6,6 @@
./fonts ./fonts
./kvm ./kvm
./podman ./podman
./spell-check
]; ];
} }

View file

@ -0,0 +1,19 @@
# spell-checking
{ config, lib, options, pkgs, ... }:
let
cfg = config.my.system.spell-check;
in
{
options.my.system.spell-check = with lib; {
enable = mkEnableOption "spell-check configuration";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
aspell
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
];
};
}