5 Commits

4 changed files with 46 additions and 7 deletions

View File

@@ -13,6 +13,7 @@
pavucontrol
godot
aseprite
zathura
gpu-screen-recorder
gpu-screen-recorder-gtk
# ungoogled-chromium

View File

@@ -65,6 +65,14 @@ in {
};
};
vkbasalt = {
enable = lib.mkEnableOption "vkBasalt/ReShade/GShade post processing shaders";
};
mangohud = {
enable = lib.mkEnableOption "OpenGL/Vulkan overlay tool shown in games presenting FPS, CPU/GPU/memory utilization, load, etc.";
};
lutris = {
enable = lib.mkEnableOption "Lutris game manager and launcher";
package = lib.mkOption {
@@ -134,6 +142,19 @@ in {
enable = lib.mkEnableOption "Zenless Zone Zero (ZZZ) launcher";
};
};
emulators = {
enable = lib.mkEnableOption "Emulation";
n64 = {
enable = lib.mkEnableOption "Nintendo 64 (N64) emulator";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.mupen64plus;
description = "Package used for the Nintendo 64 (N64) emulator";
};
};
};
};
config = let
@@ -202,10 +223,16 @@ in {
cfg.lutris.extraPackages
)) ++
(lib.optionals cfg.minecraft.enable [pkgs.prismlauncher]) ++
(lib.optionals cfg.ffxiv.enable [pkgs.xivlauncher]);
(lib.optionals cfg.ffxiv.enable [pkgs.xivlauncher pkgs.fflogs]) ++
(lib.optionals cfg.vkbasalt.enable [pkgs.vkbasalt pkgs.vkBasalt pkgs.vkbasalt-cli]) ++
(lib.optionals cfg.mangohud.enable [pkgs.mangohud]) ++
(lib.optionals (cfg.vkbasalt.enable || cfg.mangohud.enable) [pkgs.goverlay pkgs.mesa-demos pkgs.vulkan-tools]) ++
(lib.optionals cfg.emulators.enable (
lib.optionals cfg.emulators.n64.enable [pkgs.mupen64plus]
));
nix.settings = let
agl = cfg.aagl;
inherit agl;
in (lib.mkIf
(agl.anime-game-launcher.enable || agl.honkers-railway-laucher.enable || agl.honkers-launcher.enable || agl.wavey-launcher.enable || agl.sleepy-launcher.enable)
{

View File

@@ -89,8 +89,11 @@ in {
localNetworkGameTransfers = true;
};
};
vkbasalt.enable = true;
gamemode.enable = true;
gamescope.enable = true;
mangohud.enable = true;
lutris = {
enable = true;
wine = {
@@ -100,10 +103,13 @@ in {
compatibility = {
protonSupport = true;
};
extraPackages = with pkgs; [
gamemode
mangohud
];
};
emulators = {
enable = true;
n64 = {
enable = true;
};
};
ffxiv.enable = true;

View File

@@ -1,6 +1,11 @@
{...}: {
# TODO: refactor into module
{ pkgs, ...}: {
services.pipewire = {
enable = true;
pulse.enable = true;
};
environment.systemPackages = with pkgs; [
helvum
];
}