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"; networking.hostName = "desktop";
openrgb.enable = true; openrgb.enable = true;
steam.enable = true; games.enable = true;
suyu.enable = true;
norisk.enable = true;
imports = [ imports = [
./hardware.nix ./hardware.nix

View file

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

View file

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

View file

@ -5,9 +5,9 @@
... ...
}: { }: {
options = { 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; programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [

View file

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