split/rename options, bundle vendor settings

This commit is contained in:
Vinzenz Schroeter 2023-09-24 10:46:15 +02:00
parent 1b7989336e
commit 3a9a7242fc
18 changed files with 109 additions and 54 deletions

View file

@ -4,10 +4,13 @@
lib,
...
}: let
cfg = config.my.desktop.gaming;
isEnabled = config.my.desktop.enableGaming;
in {
imports = [];
config = lib.mkIf cfg.enable {
options.my.desktop.enableGaming = lib.mkEnableOption "gaming with wine";
config = lib.mkIf isEnabled {
hardware.opengl.driSupport32Bit = true;
environment.systemPackages = with pkgs; [