This commit is contained in:
cnst
2024-07-03 20:32:23 +02:00
parent 789d2d0867
commit cca2745dfa
620 changed files with 49 additions and 12 deletions

View File

@@ -0,0 +1,3 @@
{pkgs, ...}: {
environment.systemPackages = [pkgs.bottles-unwrapped];
}

41
nixos/extra/cnix.nix Normal file
View File

@@ -0,0 +1,41 @@
{pkgs, ...}: {
imports = [
./steam
./lutris
./bottles
./gamemode
./gamescope
./workstation
];
environment = {
systemPackages = with pkgs; [
# Dev
fd
python3
hyprlang
# Misc
protonup
# Lutris dependencies
(lutris.override {
extraLibraries = pkgs: [
SDL2
SDL2_image
glib
egl-wayland
wineWowPackages.stable
wineWowPackages.staging
wineWowPackages.waylandFull
winetricks
python312Packages.pygame-sdl2
libGL
ffmpeg
];
})
];
sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
};
};
}

View File

@@ -0,0 +1,19 @@
{pkgs, ...}: {
programs.gamemode = {
enable = true;
settings = {
general = {
renice = 10;
};
gpu = {
apply_gpu_optimisations = "accept-responsibility";
gpu_device = 1;
amd_performance_level = "high";
};
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
}

View File

@@ -0,0 +1,5 @@
{
programs.gamescope = {
enable = true;
};
}

View File

@@ -0,0 +1,10 @@
{
services = {
xserver = {
desktopManager.gnome = {
enable = true;
};
};
gnome.games.enable = true;
};
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
lutris
];
}

View File

@@ -0,0 +1,91 @@
{pkgs, ...}:
{
programs.nix-ld = {
enable = true;
# Sets up all the libraries to load
libraries = with pkgs; [
stdenv.cc.cc
openssl
xorg.libXcomposite
xorg.libXtst
xorg.libXrandr
xorg.libXext
xorg.libX11
xorg.libXfixes
libGL
libva
xorg.libxcb
xorg.libXdamage
xorg.libxshmfence
xorg.libXxf86vm
libelf
glib
gtk3
bzip2
xorg.libXinerama
xorg.libXcursor
xorg.libXrender
xorg.libXScrnSaver
xorg.libXi
xorg.libSM
xorg.libICE
gnome2.GConf
nspr
nss
cups
libcap
SDL2
libusb1
dbus-glib
ffmpeg
libudev0-shim
xorg.libXt
xorg.libXmu
libogg
libvorbis
SDL
SDL2_image
glew110
libidn
tbb
flac
freeglut
libjpeg
libpng
libpng12
libsamplerate
libmikmod
libtheora
libtiff
pixman
speex
SDL_image
SDL_ttf
SDL_mixer
SDL2_ttf
SDL2_mixer
libappindicator-gtk2
libdbusmenu-gtk2
libindicator-gtk2
libcaca
libcanberra
libgcrypt
libvpx
librsvg
xorg.libXft
libvdpau
gnome2.pango
cairo
atk
gdk-pixbuf
fontconfig
freetype
dbus
alsaLib
expat
libdrm
mesa
libxkbcommon
];
};
}

View File

@@ -0,0 +1,24 @@
{pkgs, ...}: {
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
package = pkgs.steam.override {
extraPkgs = pkgs:
with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
SDL2
SDL2_image
];
};
};
};
}

View File

@@ -0,0 +1,7 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
blender
gimp-with-plugins
inkscape-with-extensions
];
}