big restruct

This commit is contained in:
cnst
2024-08-02 21:27:09 +02:00
parent c65a8ac71d
commit f99d9fe4e5
364 changed files with 95 additions and 84 deletions

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,9 @@
{
programs.corectrl = {
enable = true;
gpuOverclock = {
enable = true;
ppfeaturemask = "0xffffffff";
};
};
}

6
sys/bin/default.nix Normal file
View File

@@ -0,0 +1,6 @@
{
imports = [
./anyrun
./hyprland
];
}

View 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
];
}

View File

@@ -0,0 +1,10 @@
{
programs.gamescope = {
enable = true;
capSysNice = true;
args = [
"--rt"
"--expose-wayland"
];
};
}

20
sys/bin/gaming.nix Normal file
View 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
sys/bin/gimp/default.nix Normal file
View File

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

10
sys/bin/gnome/default.nix Normal file
View File

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

View File

@@ -0,0 +1,7 @@
{inputs, ...}: {
imports = [
inputs.hyprland.nixosModules.default
];
environment.variables.NIXOS_OZONE_WL = "1";
programs.hyprland.enable = true;
}

View File

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

View File

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

View File

@@ -0,0 +1,8 @@
{
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
};
};
}