another one

This commit is contained in:
cnst
2024-08-03 14:03:54 +02:00
parent 2b2136dfba
commit e1f070d81a
62 changed files with 56 additions and 72 deletions

View File

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

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";
};
};
}

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
system/usr/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";
};
};
}

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; [
inkscape-with-extensions
];
}

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

View File

@@ -0,0 +1,7 @@
{
imports = [
# shared imports
./fonts
./locale
];
}

View File

@@ -0,0 +1,29 @@
{pkgs, ...}: {
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code-symbols
font-awesome
recursive
input-fonts
(nerdfonts.override {
fonts = [
"JetBrainsMono"
"FiraCode"
"FiraMono"
"Iosevka"
"3270"
"DroidSansMono"
"SourceCodePro"
"UbuntuMono"
"Overpass"
"Monoid"
"Mononoki"
"Hack"
"IBMPlexMono"
];
})
];
}

View File

@@ -0,0 +1,19 @@
{
time.timeZone = "Europe/Stockholm";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "sv_SE.UTF-8";
LC_IDENTIFICATION = "sv_SE.UTF-8";
LC_MEASUREMENT = "sv_SE.UTF-8";
LC_MONETARY = "sv_SE.UTF-8";
LC_NAME = "sv_SE.UTF-8";
LC_NUMERIC = "sv_SE.UTF-8";
LC_PAPER = "sv_SE.UTF-8";
LC_TELEPHONE = "sv_SE.UTF-8";
LC_TIME = "sv_SE.UTF-8";
};
};
}