mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
23 lines
518 B
Nix
23 lines
518 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
aspellConf = ''
|
|
data-dir /run/current-system/sw/lib/aspell
|
|
dict-dir /run/current-system/sw/lib/aspell
|
|
master en_GB-ise
|
|
extra-dicts en-computers.rws
|
|
add-extra-dicts en_GB-science.rws
|
|
'';
|
|
in {
|
|
options.elss.programs.aspell.enable = lib.mkEnableOption "setup aspell";
|
|
|
|
config = lib.mkIf config.elss.programs.aspell.enable {
|
|
environment.systemPackages =
|
|
[pkgs.aspell]
|
|
++ (with pkgs.aspellDicts; [de en sv en-computers en-science]);
|
|
};
|
|
}
|