2025-01-14 10:59:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkEnableOption;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
local.profiles.server.enable = mkEnableOption "the server profile";
|
|
|
|
};
|
|
|
|
|
2025-01-14 11:33:21 +00:00
|
|
|
config.assertions = lib.mkIf config.local.profiles.server.enable [
|
2025-01-14 10:59:59 +00:00
|
|
|
{
|
|
|
|
assertion = !config.local.profiles.desktop.enable;
|
|
|
|
message = "The server profile cannot be enabled if `local.profiles.desktop.enable` is set to true.";
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
assertion = !config.local.profiles.gaming.enable;
|
|
|
|
message = "The server profile cannot be enabled if `local.profiles.gaming.enable` is set to true.";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|