add: gamescope steam and fonts

This commit is contained in:
elwrcl committed 2026-04-16 11:12:08 +03:00
1 parent 46aa740ef3
commit c3237a9f3b
5 files changed
+119 -10

No files matched your search

+45 -4
View File
@@ -1,11 +1,33 @@
{ pkgs, ... }:
{
config,
pkgs,
...
}:
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
extest.enable = true;
protontricks.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
gamescopeSession = {
enable = true;
env = {
STEAM_ALREADY_GAMESCOPED = "1";
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "0";
WINE_MOUSE_WARP_OVERRIDE = "force";
};
args = [
"--fullscreen"
"--force-grab-cursor"
];
};
package = pkgs.steam.override {
extraEnv = {
STEAM_USE_PORTAL = "1";
@@ -47,11 +69,30 @@
pkgsi686Linux.libpulseaudio
];
};
gamescopeSession.enable = true;
};
programs.gamescope = {
enable = true;
capSysNice = true;
};
programs.bash.enable = true;
hardware.graphics.enable = true;
environment.systemPackages = with pkgs; [
protontricks
hardware.steam-hardware.enable = true;
environment.systemPackages = [
(pkgs.lib.hiPrio (
pkgs.writeShellScriptBin "steam" ''
REAL_STEAM="${config.programs.steam.package}/bin/steam"
if [ -n "$STEAM_ALREADY_GAMESCOPED" ] || [ -n "$GAMESCOPE_WAYLAND_DISPLAY" ]; then
exec "$REAL_STEAM" "$@"
fi
if [ "$STEAM_USE_GAMESCOPE" = "1" ] && command -v steam-gamescope >/dev/null 2>&1; then
exec steam-gamescope "$@"
fi
exec "$REAL_STEAM" "$@"
''
))
];
}
+51 -1
View File
@@ -1,4 +1,4 @@
{ ... }:
{ pkgs, ... }:
{
imports = [
@@ -6,4 +6,54 @@
./nix
./power.nix
];
fonts = {
packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-color-emoji
ipaexfont
nerd-fonts.jetbrains-mono
];
fontconfig = {
enable = true;
antialias = true;
hinting = {
enable = true;
style = "slight";
autohint = false;
};
subpixel = {
rgba = "rgb";
lcdfilter = "default";
};
defaultFonts = {
serif = [
"JetBrainsMono Nerd Font"
"Noto Serif CJK JP"
"Noto Serif"
"IPAexMincho"
];
sansSerif = [
"JetBrainsMono Nerd Font"
"Noto Sans CJK JP"
"Noto Sans"
"IPAexGothic"
];
monospace = [
"JetBrainsMono Nerd Font Mono"
"JetBrainsMono Nerd Font"
"Noto Sans Mono CJK JP"
"Noto Sans CJK JP"
"IPAexGothic"
];
emoji = [ "Noto Color Emoji" ];
};
};
};
}
+1 -2
View File
@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
users.users.elars = {
@@ -30,5 +30,4 @@
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
};
programs.firefox.enable = true;
}