anchor.diff:  { config, lib, pkgs, ... }:
  -with lib; {
  +
  +with lib;
  +
  +let
  +  cfg = config.services.journald;
  +in {
     options = {
       services.journald.console = mkOption {
         default = "";
  
positive.code:     users.groups.systemd-journal-gateway.gid = config.ids.gids.systemd-journal-gateway;
  
      systemd.sockets.systemd-journal-gatewayd.wantedBy =
        optional config.services.journald.enableHttpGateway "sockets.target";
  
      systemd.services.systemd-journal-flush.restartIfChanged = false;
      systemd.services.systemd-journald.restartTriggers = [ config.environment.etc."systemd/journald.conf".source ];
  
negative.code:       "systemd/journald.conf".text = ''
          [Journal]
          Storage=persistent
          RateLimitInterval=${cfg.rateLimitInterval}
          RateLimitBurst=${toString cfg.rateLimitBurst}
          ${optionalString (cfg.console != "") ''
            ForwardToConsole=yes
            TTYPath=${cfg.console}
          ''}
          ${optionalString (cfg.forwardToSyslog) ''
            ForwardToSyslog=yes
          ''}
          ${cfg.extraConfig}
        '';
      };
  
  