feat(languagetool): add languagetool service to marpa
This commit is contained in:
		
							parent
							
								
									df782e7507
								
							
						
					
					
						commit
						7b56ec9f1e
					
				@ -76,6 +76,7 @@
 | 
			
		||||
        enable = true;
 | 
			
		||||
        autostart = true;
 | 
			
		||||
      };
 | 
			
		||||
      languagetool.enable = true;
 | 
			
		||||
    };
 | 
			
		||||
    users = {
 | 
			
		||||
      root.disablePassword = true;
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,7 @@
 | 
			
		||||
    ./endlessh.nix
 | 
			
		||||
    ./fwupd.nix
 | 
			
		||||
    ./jellyfin.nix
 | 
			
		||||
    ./languagetool.nix
 | 
			
		||||
    ./plex.nix
 | 
			
		||||
    ./printing.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