@@ -160,6 +160,11 @@ in {
160160 + " the 'users.users' option instead as this combination is"
161161 + " currently not supported.";
162162 }
163+ { assertion = !cfg.serviceConfig.ProtectSystem or false;
164+ message = "${whatOpt "ProtectSystem"}. ProtectSystem is not compatible"
165+ + " with service confinement as it fails to remount /usr within"
166+ + " our chroot. Please disable the option.";
167+ }
163168 ]) config.systemd.services);
164169
165170 config.systemd.packages = lib.concatLists (lib.mapAttrsToList (name: cfg: let