{ lib, config, ... }: let inherit (lib) types mkIf mkDefault; osConfig = config; in { options.systemd.services = lib.mkOption { type = types.attrsOf ( lib.types.submodule { config.serviceConfig = mkIf (osConfig.specialisation != { }) { SystemCallArchitectures = mkDefault "native"; }; } ); }; config = mkIf (config.specialisation != { }) { systemd.services = { }; }; }