From 625e67339e88d16e8702998d54346d4347c1fc5b Mon Sep 17 00:00:00 2001 From: ooks-io Date: Sun, 5 Jan 2025 22:08:50 +1100 Subject: [PATCH] home: add emulation module --- modules/home/workstation/gaming/default.nix | 1 + modules/home/workstation/gaming/emulation.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 modules/home/workstation/gaming/emulation.nix diff --git a/modules/home/workstation/gaming/default.nix b/modules/home/workstation/gaming/default.nix index 048500d..20f918e 100644 --- a/modules/home/workstation/gaming/default.nix +++ b/modules/home/workstation/gaming/default.nix @@ -10,6 +10,7 @@ in { ./wow.nix ./wine.nix ./bottles.nix + ./emulation.nix ]; config = mkIf (elem "gaming" profiles) { ooknet.binds = { diff --git a/modules/home/workstation/gaming/emulation.nix b/modules/home/workstation/gaming/emulation.nix new file mode 100644 index 0000000..c569f10 --- /dev/null +++ b/modules/home/workstation/gaming/emulation.nix @@ -0,0 +1,19 @@ +{ + lib, + osConfig, + pkgs, + ... +}: let + inherit (lib) mkIf elem; + inherit (builtins) attrValues; + inherit (osConfig.ooknet.workstation) profiles; +in { + config = mkIf (elem "gaming" profiles) { + home.packages = attrValues { + inherit + (pkgs) + ryujinx + ; + }; + }; +}