First Commit
This commit is contained in:
13
modules/gaming/anime-game-launchers.nix
Normal file
13
modules/gaming/anime-game-launchers.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ lib, config, inputs, ... }:
|
||||
let
|
||||
cfg = config.my.gaming;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.aagl.nixosModules.default
|
||||
];
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.honkers-railway-launcher.enable = true;
|
||||
programs.sleepy-launcher.enable = true;
|
||||
};
|
||||
}
|
||||
19
modules/gaming/default.nix
Normal file
19
modules/gaming/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
14
modules/gaming/packages.nix
Normal file
14
modules/gaming/packages.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
heroic
|
||||
vulkan-hdr-layer-kwin6
|
||||
lsfg-vk
|
||||
lsfg-vk-ui
|
||||
gamescope
|
||||
gamescope-wsi
|
||||
moonlight-qt
|
||||
bs-manager
|
||||
wine
|
||||
];
|
||||
}
|
||||
25
modules/gaming/steam.nix
Normal file
25
modules/gaming/steam.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = false;
|
||||
gamescopeSession.enable = false;
|
||||
extraPackages = with pkgs; [
|
||||
steamtinkerlaunch
|
||||
];
|
||||
extraCompatPackages = with pkgs; [
|
||||
steamtinkerlaunch
|
||||
];
|
||||
};
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
steamtinkerlaunch
|
||||
protonup-qt
|
||||
];
|
||||
}
|
||||
21
modules/gaming/wivrn.nix
Normal file
21
modules/gaming/wivrn.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.wivrn = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
||||
# Write information to /etc/xdg/openxr/1/active_runtime.json, VR applications
|
||||
# will automatically read this and work with WiVRn (Note: This does not currently
|
||||
# apply for games run in Valve's Proton)
|
||||
defaultRuntime = true;
|
||||
|
||||
# Run WiVRn as a systemd service on startup
|
||||
autoStart = true;
|
||||
|
||||
# If you're running this with an nVidia GPU and want to use GPU Encoding (and don't otherwise have CUDA enabled system wide), you need to override the cudaSupport variable.
|
||||
package = (pkgs.wivrn.override { cudaSupport = true; });
|
||||
|
||||
# You should use the default configuration (which is no configuration), as that works the best out of the box.
|
||||
# However, if you need to configure something see https://github.com/WiVRn/WiVRn/blob/master/docs/configuration.md for configuration options and https://mynixos.com/nixpkgs/option/services.wivrn.config.json for an example configuration.
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user