{ config, lib, ... }: { ark = { files = [ "/etc/machine-id" ]; directories = [ "/var/lib/systemd/coredump" ]; }; my.extraGroups = [ "systemd-journal" ]; hm.systemd.user.startServices = "sd-switch"; boot.initrd.systemd = { enable = true; network = { inherit (config.systemd.network) enable; }; }; services.journald.extraConfig = '' SystemMaxUse=5G ''; systemd = let extraConfig = '' DefaultTimeoutStartSec=30s DefaultTimeoutStopSec=15s ''; in { inherit extraConfig; user = { inherit extraConfig; }; suppressedSystemUnits = lib.optionals config.nixfiles.modules.ark.enable [ "systemd-machine-id-commit.service" ]; }; boot.initrd.systemd.suppressedUnits = lib.optionals config.nixfiles.modules.ark.enable [ "systemd-machine-id-commit.service" ]; environment.variables = { SYSTEMD_PAGERSECURE = "1"; SYSTEMD_PAGER = "less"; SYSTEMD_LESS = "FRSXMK"; }; }