{ config, lib, ... }: let cfg = config.profiles.desktop; in { options.profiles.desktop = { enable = lib.mkEnableOption "desktop"; }; config = lib.mkIf cfg.enable { assertions = [ { assertion = !config.profiles.server.enable; message = "The desktop profile is not compatible with the server profile."; } ]; }; }