anchor.diff:        };
   
     };
  -  
  +
   }
  
positive.code:     *.crit                        /var/log/warn
  
      *.*;mail.none;local1.none    -/var/log/messages
  
      ${config.services.syslogd.extraConfig}
    '';
  
  in
  
  {
    ###### interface
  
    options = {
    
      services.syslogd = {
  
        tty = mkOption {
          default = "tty10";
          description = ''
            The tty device on which syslogd will print important log
            messages.
          '';
        };
  
        extraConfig = mkOption {
          default = "";
          example = "news.* -/var/log/news";
          description = ''
            Additional text appended to <filename>syslog.conf</filename>.
          '';
        };
        
      };
      
    };
  
  
    ###### implementation
  
    config = {
    
      jobs.syslogd =
        { description = "Syslog daemon";
  
  
negative.code: 
  let
  
    cfg = config.services.syslogd;
  
    syslogConf = pkgs.writeText "syslog.conf" ''
      ${if (cfg.tty != "") then "kern.warning;*.err;authpriv.none /dev/${cfg.tty}" else ""}
      ${cfg.defaultConfig}
      ${cfg.extraConfig}
    '';
  
    defaultConf = ''
      # Send emergency messages to all users.
      *.emerg                       *
  
  