Skip to content

Commit

Permalink
poorly written emulation module
Browse files Browse the repository at this point in the history
should really switch to the snowflake branch already
  • Loading branch information
Octelly committed Dec 23, 2024
1 parent 6355ddf commit 23bd5b0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hosts/ocean-desktop/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
olympus.enable = false;
minecraft.enable = true;
sunshine.enable = true;
emulation = {
enable = true;
switch = true;
};
};
awesome = {
enable = true;
Expand Down
28 changes: 28 additions & 0 deletions modules/desktop/gaming/emulation.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ config, pkgs, lib, inputs, system, ... }:

with builtins;
with lib;
let cfg = config.modules.desktop.gaming.emulation;
in {
options.modules.desktop.gaming.emulation = {
enable = mkEnableOption "enable the emulation module";
switch = mkEnableOption "Nintendo Switch";
};

config = mkIf cfg.enable {

programs.gamemode = {
enable = true;
enableRenice = true;
};

environment.systemPackages = with pkgs; [
# helpful overlays and such
mangohud
vkbasalt
# a configurator for them
goverlay
]
++ optional cfg.switch pkgs.ryujinx;
};
}

0 comments on commit 23bd5b0

Please sign in to comment.