mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
system/spell-check: init
This commit is contained in:
parent
7863b3ee5c
commit
387eed714d
2 changed files with 20 additions and 0 deletions
19
modules/system/spell-check/default.nix
Normal file
19
modules/system/spell-check/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue