19 lines
366 B
Nix
19 lines
366 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib) mkEnableOption;
|
||
|
in {
|
||
|
options = {
|
||
|
local.profiles.gaming.enable = mkEnableOption "the gaming profile";
|
||
|
};
|
||
|
|
||
|
config.assertions = [
|
||
|
{
|
||
|
assertion = !config.local.profiles.server.enable;
|
||
|
message = "The gaming profile cannot be enabled if `local.profiles.server.enable` is set to true.";
|
||
|
}
|
||
|
];
|
||
|
}
|