flocon/modules/options/profiles/server.nix

24 lines
588 B
Nix
Raw Normal View History

{
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 [
{
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.";
}
];
}