rework gaming aspect

This commit is contained in:
William 2026-02-15 17:17:29 -03:00
parent 0ce2d3b947
commit 1075c256f8
11 changed files with 72 additions and 78 deletions

View file

@ -1,25 +0,0 @@
{ ... }:
{
flake.modules.nixos.gaming-flatpak =
{ pkgs, ... }:
{
services.flatpak.packages = [
"com.github.k4zmu2a.spacecadetpinball"
"com.steamgriddb.SGDBoop"
"io.github.Foldex.AdwSteamGtk"
"io.itch.itch"
"io.mrarm.mcpelauncher"
"net.retrodeck.retrodeck"
"org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/25.08"
rec {
appId = "com.hypixel.HytaleLauncher";
sha256 = "01307s44bklc1ldcigcn9n4lm8hf8q793v9fv7w4w04xd5zyh4rv";
bundle = "${pkgs.fetchurl {
url = "https://launcher.hytale.com/builds/release/linux/amd64/hytale-launcher-latest.flatpak";
inherit sha256;
}}";
}
];
};
}

View file

@ -1,13 +0,0 @@
{ ... }:
{
flake.modules.nixos.gaming-hardware =
{ ... }:
{
hardware = {
xpadneo.enable = true;
steam-hardware.enable = true; # Allow steam client to manage controllers
graphics.enable32Bit = true; # For OpenGL games
};
};
}

View file

@ -1,13 +0,0 @@
{ ... }:
{
flake.modules.nixos.gaming-launchers =
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
clonehero
heroic
prismlauncher
];
};
}

View file

@ -2,7 +2,7 @@
{
flake.modules = {
nixos.gaming-mangohud =
nixos.mangohud =
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
@ -10,7 +10,7 @@
];
};
homeManager.gaming-mangohud =
homeManager.mangohud =
{ config, ... }:
{
programs.mangohud = {

View file

@ -1,7 +1,7 @@
{ ... }:
{
flake.modules.nixos.gaming-steam =
flake.modules.nixos.steam =
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
@ -15,5 +15,10 @@
};
gamemode.enable = true;
};
services.flatpak.packages = [
"com.steamgriddb.SGDBoop"
"io.github.Foldex.AdwSteamGtk"
];
};
}

View file

@ -19,17 +19,13 @@
# system aspects
base
cli
server
# user aspects
user
root
# Server aspects
server-boot
server-nix
server-tailscale
# Other aspects
# other aspects
fwupd
]);
};

View file

@ -23,20 +23,17 @@
base
cli
desktop
gaming
# user aspects
user
root
# Other aspects based on tags
# other aspects
ai
bluetooth
dev
fwupd
gaming-flatpak
gaming-hardware
gaming-launchers
gaming-steam
libvirtd
networkmanager
niri

View file

@ -21,15 +21,11 @@
# system aspects
base
cli
server
# user aspects
user
root
# Server aspects
server-boot
server-nix
server-tailscale
]);
};
}

View file

@ -19,7 +19,7 @@
homeManager.cli =
{ ... }:
{
imports = with inputs.self.modules.nixos; [
imports = with inputs.self.modules.homeManager; [
btop
comma
direnv

View file

@ -0,0 +1,48 @@
{ inputs, ... }:
{
flake.modules = {
nixos.gaming =
{ pkgs, ... }:
{
imports = with inputs.self.modules.nixos; [
mangohud
steam
];
hardware = {
xpadneo.enable = true;
steam-hardware.enable = true; # Allow steam client to manage controllers
graphics.enable32Bit = true; # For OpenGL games
};
services.flatpak.packages = [
"com.github.k4zmu2a.spacecadetpinball"
"io.itch.itch"
"io.mrarm.mcpelauncher"
"net.retrodeck.retrodeck"
"org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/25.08"
rec {
appId = "com.hypixel.HytaleLauncher";
sha256 = "01307s44bklc1ldcigcn9n4lm8hf8q793v9fv7w4w04xd5zyh4rv";
bundle = "${pkgs.fetchurl {
url = "https://launcher.hytale.com/builds/release/linux/amd64/hytale-launcher-latest.flatpak";
inherit sha256;
}}";
}
];
environment.systemPackages = with pkgs; [
clonehero
heroic
prismlauncher
];
};
homeManager.gaming =
{ ... }:
{
imports = with inputs.self.modules.homeManager; [
mangohud
];
};
};
}

View file

@ -40,11 +40,13 @@
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
]
++ (with inputs.self.modules.homeManager; [
base # base aspect
cli # cli aspect
desktop # desktop aspect
# system aspects
base
cli
desktop
gaming
# other aspect
# other aspects
stylix
niri
]);
@ -68,9 +70,10 @@
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
]
++ (with inputs.self.modules.homeManager; [
base # base aspect
cli # cli aspect
desktop # desktop aspect
# system aspects
base
cli
desktop
# other aspect
stylix