push
This commit is contained in:
1 parent
409c2be1d6
commit
ef19a50302
31 files changed
+710
-124
No files matched your search
@@ -0,0 +1,41 @@
|
||||
{ inputs, ... }: {
|
||||
flake-file.inputs.steam-config-nix = {
|
||||
url = "github:different-name/steam-config-nix";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flake-parts.follows = "flake-parts";
|
||||
};
|
||||
};
|
||||
|
||||
# Declarative Steam config (https://different-name.github.io/steam-config-nix).
|
||||
# The NixOS module needs no user option: it runs steam-config-patcher@<user>
|
||||
# for every normal user. One file per game lives next to this one
|
||||
# (see half-life-2.nix); app keys are Steam App IDs from the store URL.
|
||||
#
|
||||
# WARNING: anything using the wrapper (args/env/wrappers/preHook/dllOverrides/
|
||||
# rawLaunchOptions) OVERWRITES the launch options you set by hand in Steam.
|
||||
# Move hand-written strings into rawLaunchOptions instead.
|
||||
#
|
||||
# programs.steam.config = {
|
||||
# onSteamRunning = "wait"; # default; or "close" (waits for games),
|
||||
# # "force-close" (even mid-game), "skip" (next activation)
|
||||
# defaultCompatTool = "proton_experimental"; # or a package: pkgs.proton-ge-bin
|
||||
# apps."1234560" = {
|
||||
# name = "Some Game";
|
||||
# compatTool = pkgs.proton-ge-bin; # per-game Proton
|
||||
# args = [ "-vulkan" ]; # appended after the game command
|
||||
# env = { MANGOHUD = "1"; DXVK_ASYNC = "1"; TZ = null; }; # null = unset
|
||||
# wrappers = [ "gamemoderun" "mangohud" ]; # outermost first
|
||||
# dllOverrides = { winhttp = "n,b"; }; # -> WINEDLLOVERRIDES
|
||||
# preHook = ''echo "launching $*"''; # runs right before exec
|
||||
# # or the classic Steam string instead of the structured options:
|
||||
# # rawLaunchOptions = "gamemoderun %command%";
|
||||
# };
|
||||
# };
|
||||
|
||||
den.aspects.software.gaming.nixos = {
|
||||
imports = [ inputs.steam-config-nix.nixosModules.default ];
|
||||
|
||||
programs.steam.config.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{ den, inputs, ... }: {
|
||||
flake-file.inputs.millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix";
|
||||
|
||||
den.aspects.software.gaming = {
|
||||
includes = [ (den.batteries.unfree [ "steam" "steam-unwrapped" ]) ];
|
||||
|
||||
nixos = { pkgs, ... }: {
|
||||
nixpkgs.overlays = [ inputs.millennium.overlays.default ];
|
||||
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
package = pkgs.millennium-steam;
|
||||
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = false;
|
||||
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
|
||||
gamescopeSession.enable = true;
|
||||
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
|
||||
# platformOptimizations.enable = true;
|
||||
};
|
||||
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
|
||||
args = [
|
||||
"--rt"
|
||||
"--expose-wayland"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
den.aspects.software.gaming.nixos.programs.steam.config.apps."70" = {
|
||||
name = "Half-Life";
|
||||
args = [ "-novid" ];
|
||||
wrappers = [ "gamemoderun" ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user