refactor: organizing some imports

This commit is contained in:
gwg313 2024-09-11 13:59:52 -04:00
parent c4f7a64329
commit db319ed5af
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
8 changed files with 184 additions and 95 deletions

View file

@ -1,5 +1,9 @@
{lib, ...}: {
imports = [./thunar.nix];
imports = [
./thunar.nix
./steam.nix
];
thunar.enable = lib.mkDefault true;
steam.enable = lib.mkDefault false;
}

View file

@ -4,44 +4,48 @@
pkgs,
...
}: {
hardware.opengl.driSupport32Bit = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs:
with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
options = {
steam.enable = lib.mkEnableOption "Enables steam";
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession = {
config = lib.mkIf config.steam.enable {
hardware.opengl.driSupport32Bit = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs:
with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
};
programs.steam = {
enable = true;
args = [
"-F fsr"
"-f"
];
remotePlay.openFirewall = true;
gamescopeSession = {
enable = true;
args = [
"-F fsr"
"-f"
];
};
};
};
environment.sessionVariables = {
# Proton GE flag
WINE_FULLSCREEN_FSR = "1";
};
environment.sessionVariables = {
# Proton GE flag
WINE_FULLSCREEN_FSR = "1";
};
environment.systemPackages = with pkgs; [
protonup
];
environment.systemPackages = with pkgs; [protonup];
};
}