feat(gaming): add enable option

This commit is contained in:
2026-05-22 20:19:37 +02:00
parent cd1880e7c9
commit a3fd052204

View File

@@ -1,11 +1,17 @@
{
config,
lib,
config,
pkgs,
...
}:
let
cfg = config.gaming;
in
{
options.gaming.enable = lib.mkEnableOption "gaming";
config = lib.mkIf cfg.enable {
nixpkgs.allowedUnfree = [
"steam"
"steam-unwrapped"
@@ -29,7 +35,6 @@
programs.gamemode.enable = true;
environment.systemPackages = with pkgs; [
# lutris
mangohud
];
@@ -47,4 +52,5 @@
value = "524288";
}
];
};
}