added copyq service

This commit is contained in:
cnst
2024-07-28 15:18:29 +02:00
parent 589806fa52
commit 3914f46ba3
11 changed files with 57 additions and 506 deletions

View File

@@ -3,13 +3,14 @@
enable = true;
settings = {
general = {
renice = 10;
};
gpu = {
apply_gpu_optimisations = "accept-responsibility";
gpu_device = 1;
amd_performance_level = "high";
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'";

View File

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

View File

@@ -18,7 +18,6 @@
SDL2
SDL2_image
glib
egl-wayland
wineWowPackages.stable
wineWowPackages.staging
wineWowPackages.waylandFull

View File

@@ -1,24 +1,8 @@
{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

@@ -18,6 +18,10 @@
vaapiVdpau
libvdpau-va-gl
];
extraPackages32 = with pkgs.pkgsi686Linux; [
vaapiVdpau
libvdpau-va-gl
];
};
};
}

View File

@@ -1,4 +1,4 @@
{
{config, ...}: {
services.xserver = {
enable = true;
videoDrivers = ["amdgpu"];
@@ -6,7 +6,7 @@
extraLayouts.hhkbse = {
description = "HHKBse by cnst";
languages = ["se"];
symbolsFile = /nixos/hosts/cnix/xkb/symbols/hhkbse;
symbolsFile = /home/cnst/.nix-config/nixos/hosts/cnix/xkb/symbols/hhkbse;
};
layout = "hhkbse";
# dir = "/home/cnst/.nix-config/nixos/xkb";