only 1 option for games
This commit is contained in:
parent
1d9a5c8c4d
commit
fdf0e9e18c
|
@ -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
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
cemu
|
||||
];
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.games.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
cemu
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
|
@ -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) [
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue