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:       ] ++ (optional (!config.boot.isContainer) "systemd-journald-audit.socket") ++ [
        "systemd-journald-dev-log.socket"
        "syslog.socket"
        ] ++ optionals cfg.enableHttpGateway [
        "systemd-journal-gatewayd.socket"
        "systemd-journal-gatewayd.service"
        ];
  