another one :D
This commit is contained in:
1
system/opt/android/default.nix
Normal file
1
system/opt/android/default.nix
Normal file
@@ -0,0 +1 @@
|
||||
{ programs.adb.enable = true; }
|
||||
3
system/opt/bottles/default.nix
Normal file
3
system/opt/bottles/default.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = [pkgs.bottles-unwrapped];
|
||||
}
|
||||
9
system/opt/corectrl/default.nix
Normal file
9
system/opt/corectrl/default.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
programs.corectrl = {
|
||||
enable = true;
|
||||
gpuOverclock = {
|
||||
enable = true;
|
||||
ppfeaturemask = "0xffffffff";
|
||||
};
|
||||
};
|
||||
}
|
||||
29
system/opt/gamemode/default.nix
Normal file
29
system/opt/gamemode/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
softrealtime = "auto";
|
||||
renice = 15;
|
||||
};
|
||||
# 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'";
|
||||
};
|
||||
};
|
||||
};
|
||||
# see https://github.com/fufexan/nix-gaming/#pipewire-low-latency
|
||||
services.pipewire.lowLatency.enable = true;
|
||||
imports = [
|
||||
inputs.nix-gaming.nixosModules.pipewireLowLatency
|
||||
];
|
||||
}
|
||||
10
system/opt/gamescope/default.nix
Normal file
10
system/opt/gamescope/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
args = [
|
||||
"--rt"
|
||||
"--expose-wayland"
|
||||
];
|
||||
};
|
||||
}
|
||||
20
system/opt/gaming.nix
Normal file
20
system/opt/gaming.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./steam
|
||||
./lutris
|
||||
# ./bottles
|
||||
./gamemode
|
||||
./gamescope
|
||||
./corectrl
|
||||
];
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
# Misc
|
||||
protonup
|
||||
winetricks
|
||||
];
|
||||
sessionVariables = {
|
||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
|
||||
};
|
||||
};
|
||||
}
|
||||
5
system/opt/gimp/default.nix
Normal file
5
system/opt/gimp/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
gimp-with-plugins
|
||||
];
|
||||
}
|
||||
5
system/opt/inkscape/default.nix
Normal file
5
system/opt/inkscape/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
inkscape-with-extensions
|
||||
];
|
||||
}
|
||||
5
system/opt/lutris/default.nix
Normal file
5
system/opt/lutris/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
lutris
|
||||
];
|
||||
}
|
||||
8
system/opt/steam/default.nix
Normal file
8
system/opt/steam/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user