anchor.diff:        "systemd/journald.conf".text = ''
           [Journal]
           Storage=persistent
  -        RateLimitInterval=${config.services.journald.rateLimitInterval}
  -        RateLimitBurst=${toString config.services.journald.rateLimitBurst}
  -        ${optionalString (config.services.journald.console != "") ''
  +        RateLimitInterval=${cfg.rateLimitInterval}
  +        RateLimitBurst=${toString cfg.rateLimitBurst}
  +        ${optionalString (cfg.console != "") ''
             ForwardToConsole=yes
  -          TTYPath=${config.services.journald.console}
  +          TTYPath=${cfg.console}
           ''}
  -        ${optionalString (config.services.journald.forwardToSyslog) ''
  +        ${optionalString (cfg.forwardToSyslog) ''
             ForwardToSyslog=yes
           ''}
  -        ${config.services.journald.extraConfig}
  +        ${cfg.extraConfig}
         '';
       };
   
  
positive.code:       ] ++ (optional (!config.boot.isContainer) "systemd-journald-audit.socket") ++ [
        "systemd-journald-dev-log.socket"
        "syslog.socket"
        ] ++ optionals config.services.journald.enableHttpGateway [
        "systemd-journal-gatewayd.socket"
        "systemd-journal-gatewayd.service"
        ];
  
negative.code: { config, lib, pkgs, ... }:
  
  with lib;
  
  let
    cfg = config.services.journald;
  in {
    options = {
      services.journald.console = mkOption {
        default = "";
  