This commit is contained in:
Spectre 2024-06-08 15:20:05 +02:00
parent 72508268d6
commit da80e76c8d
3 changed files with 6 additions and 2 deletions

View file

@ -15,6 +15,7 @@ in {
modules = [ modules = [
./common.nix ./common.nix
./options.nix
conf.extraConfig conf.extraConfig
conf.hardware-configuration conf.hardware-configuration
@ -29,6 +30,7 @@ in {
modules = [ modules = [
./common.nix ./common.nix
./options.nix
conf.extraConfig conf.extraConfig
conf.hardware-configuration conf.hardware-configuration

4
system/options.nix Normal file
View file

@ -0,0 +1,4 @@
{lib, ...}: {
options.gaming.enable = lib.mkEnableOption "Enable gaming";
config.gaming.enable = lib.mkDefault false;
}

View file

@ -3,8 +3,6 @@
config, config,
... ...
}: { }: {
options.gaming.enable = lib.mkEnableOption "Enable gaming";
config = lib.mkIf config.gaming.enable { config = lib.mkIf config.gaming.enable {
programs.steam = { programs.steam = {
enable = true; enable = true;