mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
47 lines
954 B
Nix
47 lines
954 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
isEnabled = config.my.desktop.enableGaming;
|
|
in {
|
|
options.my.desktop.enableGaming = lib.mkEnableOption "gaming with wine";
|
|
|
|
config = lib.mkIf isEnabled {
|
|
hardware.opengl = {
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
extraPackages = with pkgs; [mangohud];
|
|
extraPackages32 = with pkgs; [mangohud];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wineWowPackages.stagingFull
|
|
wineWowPackages.fonts
|
|
winetricks
|
|
dxvk
|
|
mangohud
|
|
vulkan-tools
|
|
|
|
(lutris.override {
|
|
extraPkgs = pkgs: [
|
|
# List package dependencies here
|
|
];
|
|
extraLibraries = pkgs: [
|
|
# List library dependencies here
|
|
];
|
|
})
|
|
];
|
|
|
|
programs = {
|
|
xwayland.enable = true;
|
|
steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
};
|
|
};
|
|
};
|
|
}
|