rework gaming aspect
This commit is contained in:
parent
0ce2d3b947
commit
1075c256f8
11 changed files with 72 additions and 78 deletions
|
|
@ -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;
|
|
||||||
}}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -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
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
flake.modules.nixos.gaming-launchers =
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
clonehero
|
|
||||||
heroic
|
|
||||||
prismlauncher
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
flake.modules = {
|
flake.modules = {
|
||||||
nixos.gaming-mangohud =
|
nixos.mangohud =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
homeManager.gaming-mangohud =
|
homeManager.mangohud =
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
programs.mangohud = {
|
programs.mangohud = {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
flake.modules.nixos.gaming-steam =
|
flake.modules.nixos.steam =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
@ -15,5 +15,10 @@
|
||||||
};
|
};
|
||||||
gamemode.enable = true;
|
gamemode.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.flatpak.packages = [
|
||||||
|
"com.steamgriddb.SGDBoop"
|
||||||
|
"io.github.Foldex.AdwSteamGtk"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,17 +19,13 @@
|
||||||
# system aspects
|
# system aspects
|
||||||
base
|
base
|
||||||
cli
|
cli
|
||||||
|
server
|
||||||
|
|
||||||
# user aspects
|
# user aspects
|
||||||
user
|
user
|
||||||
root
|
root
|
||||||
|
|
||||||
# Server aspects
|
# other aspects
|
||||||
server-boot
|
|
||||||
server-nix
|
|
||||||
server-tailscale
|
|
||||||
|
|
||||||
# Other aspects
|
|
||||||
fwupd
|
fwupd
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,20 +23,17 @@
|
||||||
base
|
base
|
||||||
cli
|
cli
|
||||||
desktop
|
desktop
|
||||||
|
gaming
|
||||||
|
|
||||||
# user aspects
|
# user aspects
|
||||||
user
|
user
|
||||||
root
|
root
|
||||||
|
|
||||||
# Other aspects based on tags
|
# other aspects
|
||||||
ai
|
ai
|
||||||
bluetooth
|
bluetooth
|
||||||
dev
|
dev
|
||||||
fwupd
|
fwupd
|
||||||
gaming-flatpak
|
|
||||||
gaming-hardware
|
|
||||||
gaming-launchers
|
|
||||||
gaming-steam
|
|
||||||
libvirtd
|
libvirtd
|
||||||
networkmanager
|
networkmanager
|
||||||
niri
|
niri
|
||||||
|
|
|
||||||
|
|
@ -21,15 +21,11 @@
|
||||||
# system aspects
|
# system aspects
|
||||||
base
|
base
|
||||||
cli
|
cli
|
||||||
|
server
|
||||||
|
|
||||||
# user aspects
|
# user aspects
|
||||||
user
|
user
|
||||||
root
|
root
|
||||||
|
|
||||||
# Server aspects
|
|
||||||
server-boot
|
|
||||||
server-nix
|
|
||||||
server-tailscale
|
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
homeManager.cli =
|
homeManager.cli =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = with inputs.self.modules.nixos; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
btop
|
btop
|
||||||
comma
|
comma
|
||||||
direnv
|
direnv
|
||||||
|
|
|
||||||
48
aspects/systems/gaming.nix
Normal file
48
aspects/systems/gaming.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -40,11 +40,13 @@
|
||||||
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
|
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
|
||||||
]
|
]
|
||||||
++ (with inputs.self.modules.homeManager; [
|
++ (with inputs.self.modules.homeManager; [
|
||||||
base # base aspect
|
# system aspects
|
||||||
cli # cli aspect
|
base
|
||||||
desktop # desktop aspect
|
cli
|
||||||
|
desktop
|
||||||
|
gaming
|
||||||
|
|
||||||
# other aspect
|
# other aspects
|
||||||
stylix
|
stylix
|
||||||
niri
|
niri
|
||||||
]);
|
]);
|
||||||
|
|
@ -68,9 +70,10 @@
|
||||||
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
|
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
|
||||||
]
|
]
|
||||||
++ (with inputs.self.modules.homeManager; [
|
++ (with inputs.self.modules.homeManager; [
|
||||||
base # base aspect
|
# system aspects
|
||||||
cli # cli aspect
|
base
|
||||||
desktop # desktop aspect
|
cli
|
||||||
|
desktop
|
||||||
|
|
||||||
# other aspect
|
# other aspect
|
||||||
stylix
|
stylix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue