19 lines
399 B
Nix
19 lines
399 B
Nix
|
{ config, lib, ... }:
|
||
|
let
|
||
|
cfg = config.profiles.gaming;
|
||
|
in
|
||
|
{
|
||
|
options.profiles.gaming = {
|
||
|
enable = lib.mkEnableOption "gaming";
|
||
|
};
|
||
|
|
||
|
imports = lib.optionals cfg.enable (lib.findModules { } [ ./profile ]);
|
||
|
|
||
|
config.assertions = lib.mkIf cfg.enable [
|
||
|
{
|
||
|
assertion = config.profiles.desktop.enable;
|
||
|
message = "The gaming profile depends on the desktop profile.";
|
||
|
}
|
||
|
];
|
||
|
}
|