First Commit

This commit is contained in:
2026-01-05 04:04:36 +01:00
commit c7a17f7772
83 changed files with 3574 additions and 0 deletions

View 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;
};
}

View 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;
}

View 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
View 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
View 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.
};
}