feat(languagetool): add languagetool service to marpa
This commit is contained in:
parent
30e3fa2b08
commit
8b3864084f
@ -76,6 +76,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
autostart = true;
|
autostart = true;
|
||||||
};
|
};
|
||||||
|
languagetool.enable = true;
|
||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
root.disablePassword = true;
|
root.disablePassword = true;
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
./endlessh.nix
|
./endlessh.nix
|
||||||
./fwupd.nix
|
./fwupd.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
|
./languagetool.nix
|
||||||
./plex.nix
|
./plex.nix
|
||||||
./printing.nix
|
./printing.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
|||||||
20
system/services/languagetool.nix
Normal file
20
system/services/languagetool.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.mySystem.services.languagetool;
|
||||||
|
in {
|
||||||
|
options.mySystem.services.languagetool = {
|
||||||
|
enable = mkEnableOption "Enables languagetool";
|
||||||
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
|
default = 8081;
|
||||||
|
example = 80;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config.services.languagetool = mkIf cfg.enable {
|
||||||
|
inherit (cfg) enable port;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user