<commit_before># Disnix server
{ config, pkgs, ... }:

with pkgs.lib;

let

  cfg = config.services.disnix;

in

{

  ###### interface
  
  options = {
  
    services.disnix = {
    
      enable = mkOption {
        default = false;
        description = "Whether to enable Disnix";
      };        

    };
    
  };
  

  ###### implementation

  config = mkIf cfg.enable {

    environment.systemPackages = [ pkgs.disnix ];

    services.dbus.enable = true;
    services.dbus.packages = [ pkgs.disnix ];

    jobs.disnix =
      { description = "Disnix server";

        startOn = "started dbus";

        script =
          ''    
            export ACTIVATION_SCRIPTS=${pkgs.disnix_activation_scripts}/libexec/disnix/activation-scripts
            export PATH=${pkgs.nixUnstable}/bin
            export HOME=/root
	
            ${pkgs.disnix}/bin/disnix-service
          '';
      };

  };

}<commit_msg>Updated disnix service for the 0.1 release<commit_after># Disnix server
{ config, pkgs, ... }:

with pkgs.lib;

let

  cfg = config.services.disnix;

in

{

  ###### interface
  
  options = {
  
    services.disnix = {
    
      enable = mkOption {
        default = false;
        description = "Whether to enable Disnix";
      };        

    };
    
  };
  

  ###### implementation

  config = mkIf cfg.enable {

    environment.systemPackages = [ pkgs.disnix ];

    services.dbus.enable = true;
    services.dbus.packages = [ pkgs.disnix ];

    jobs.disnix =
      { description = "Disnix server";

        startOn = "started dbus";

        script =
          ''                
            export PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
            export HOME=/root
	
            ${pkgs.disnix}/bin/disnix-service --activation-modules-dir=${pkgs.disnix_activation_scripts}/libexec/disnix/activation-scripts
          '';
      };

  };

}
{'fraction_non_alphanumeric': 0.12956107879428874, 'fraction_numerical': 0.0010576414595452142, 'mean_word_length': 1.8365817091454273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5809581', 'n_tokens_mistral': 656, 'n_tokens_neox': 579, 'n_words': 101}