diff --git a/hosts/cube/default.nix b/hosts/cube/default.nix index e3c8b66..46fbb98 100644 --- a/hosts/cube/default.nix +++ b/hosts/cube/default.nix @@ -7,6 +7,7 @@ sconfig = { gnome = true; profile = "desktop"; + gaming = true; }; environment.etc = diff --git a/modules/gaming.nix b/modules/gaming.nix new file mode 100644 index 0000000..85eef24 --- /dev/null +++ b/modules/gaming.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.sconfig.gaming; +in +{ + options.sconfig.gaming.enable = lib.mkEnableOption "Enable Gaming"; + + config = lib.mkIf cfg.enable + { + programs.steam.enable = true; + environment.systemPackages = [ pkgs.steam-run ]; + }; +} diff --git a/modules/profiles/desktop.nix b/modules/profiles/desktop.nix index 9480afa..07cee78 100644 --- a/modules/profiles/desktop.nix +++ b/modules/profiles/desktop.nix @@ -25,7 +25,6 @@ with lib; pavucontrol pulseeffects-legacy qemu_full - steam-run tdesktop youtube-dl @@ -104,8 +103,6 @@ with lib; { key = "ctrl+e"; command = "workbench.action.quickOpen"; when = "!terminalFocus"; } ]; - programs.steam.enable = true; - virtualisation.docker = { enable = true; enableOnBoot = false; }; boot.kernelPackages = pkgs.linuxPackages_5_15;