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