mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-09-14 18:14:43 +00:00
create gaming module
This commit is contained in:
parent
5adc4a6147
commit
55ba37f615
3 changed files with 15 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
||||||
sconfig = {
|
sconfig = {
|
||||||
gnome = true;
|
gnome = true;
|
||||||
profile = "desktop";
|
profile = "desktop";
|
||||||
|
gaming = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc =
|
environment.etc =
|
||||||
|
|
14
modules/gaming.nix
Normal file
14
modules/gaming.nix
Normal file
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -25,7 +25,6 @@ with lib;
|
||||||
pavucontrol
|
pavucontrol
|
||||||
pulseeffects-legacy
|
pulseeffects-legacy
|
||||||
qemu_full
|
qemu_full
|
||||||
steam-run
|
|
||||||
tdesktop
|
tdesktop
|
||||||
youtube-dl
|
youtube-dl
|
||||||
|
|
||||||
|
@ -104,8 +103,6 @@ with lib;
|
||||||
{ key = "ctrl+e"; command = "workbench.action.quickOpen"; when = "!terminalFocus"; }
|
{ key = "ctrl+e"; command = "workbench.action.quickOpen"; when = "!terminalFocus"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.steam.enable = true;
|
|
||||||
|
|
||||||
virtualisation.docker = { enable = true; enableOnBoot = false; };
|
virtualisation.docker = { enable = true; enableOnBoot = false; };
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_5_15;
|
boot.kernelPackages = pkgs.linuxPackages_5_15;
|
||||||
|
|
Loading…
Reference in a new issue