-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
504 additions
and
393 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ config, pkgs, lib, inputs, system, ... }: | ||
|
||
with builtins; | ||
with lib; | ||
let cfg = config.modules.desktop.gaming.emulation; | ||
in { | ||
options.modules.desktop.gaming.emulation = { | ||
enable = mkEnableOption "the emulation module"; | ||
switch = mkEnableOption "Nintendo Switch"; | ||
gamecube = mkEnableOption "Nintendo GameCube"; | ||
wii = mkEnableOption "Nintendo Wii"; | ||
|
||
primehack = mkEnableOption "Metroid Prime GCN/Wii mouse keyboard hack"; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
|
||
# some emulators support gamemode natively | ||
modules.desktop.gaming.utils.gamemode = mkDefault true; | ||
|
||
environment.systemPackages = [] | ||
++ optional cfg.switch pkgs.ryujinx | ||
++ optional (cfg.gamecube || cfg.wii) pkgs.dolphin-emu | ||
++ optional cfg.primehack pkgs.dolphin-emu-primehack; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.