only 1 option for games

This commit is contained in:
joy 2024-10-13 13:54:32 +02:00
parent 1d9a5c8c4d
commit fdf0e9e18c
5 changed files with 16 additions and 17 deletions

View file

@ -2,9 +2,7 @@
networking.hostName = "desktop";
openrgb.enable = true;
steam.enable = true;
suyu.enable = true;
norisk.enable = true;
games.enable = true;
imports = [
./hardware.nix

View file

@ -1,5 +1,12 @@
{pkgs, ...}: {
{
pkgs,
lib,
config,
...
}: {
config = lib.mkIf config.games.enable {
environment.systemPackages = with pkgs; [
cemu
];
};
}

View file

@ -20,10 +20,7 @@
logourl = "https://raw.githubusercontent.com/NoRiskClient/noriskclient-launcher/refs/heads/main/src/images/norisk_logo.png";
logsha256 = "sha256-VwWwShUrT055mcabS8QTqqb8INgRB/08U2qEEIVYHlg=";
in {
options = {
norisk.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.norisk.enable {
config = lib.mkIf config.games.enable {
environment.systemPackages = [
customPkgs.noriskclient
];

View file

@ -5,9 +5,9 @@
...
}: {
options = {
steam.enable = lib.mkEnableOption "";
games.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.norisk.enable {
config = lib.mkIf config.games.enable {
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [

View file

@ -18,10 +18,7 @@
};
};
in {
options = {
suyu.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.suyu.enable {
config = lib.mkIf config.games.enable {
environment.systemPackages = [
customPkgs.suyu
];