1
0
Fork 0
puter/profiles/gaming/default.nix
2025-05-11 22:49:04 +02:00

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