This repository has no description
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ config, lib, moppkgs, unstable, pkgs, ...}:let cfg = config.sidonia;in{ options.programs.steam.extraEnv = lib.mkOption { description = "Extra environment variables for steam."; type = with lib.types; attrsOf (nullOr (coercedTo int toString str)); default = { }; apply = x: lib.filterAttrs (n: v: v != null) x; }; config = lib.mkIf (cfg.desktop.enable) { programs = { steam = { enable = lib.mkDefault true; package = unstable.steam.override { #extraProfile = "unset TZ"; inherit (config.programs.steam) extraEnv; }; protontricks.enable = lib.mkDefault true; localNetworkGameTransfers.openFirewall = lib.mkDefault true; extest.enable = lib.mkDefault true; extraCompatPackages = [ moppkgs.proton-wineland-bin unstable.dwproton-bin unstable.proton-ge-bin pkgs.steam-play-none ]; }; }; environment.systemPackages = [ pkgs.gamescope-wsi ]; # for gamescope hdr support
home-manager.users.${cfg.userName} = { wayland.windowManager.niri.settings.window-rule = [ { _children = [ { match._props.app-id._raw = ''r#"^steam_app_\d+$"#''; } { match._props.app-id._raw = ''r#"^gamescope$"#''; } ]; open-fullscreen = true; } { match._props = { app-id = "steam"; title._raw = ''r#"^notificationtoasts_\d+_desktop$"#''; }; open-focused = false; default-floating-position._props = { x = 10.0; y = 10.0; relative-to = "bottom-right"; }; } ]; }; };}