flocon/modules/options/profiles/gaming.nix

19 lines
411 B
Nix
Raw Normal View History

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