mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
many changes
This commit is contained in:
parent
3150cf3c12
commit
0262081094
43 changed files with 4022 additions and 204 deletions
|
|
@ -15,24 +15,36 @@ programs.gamescope = {
|
|||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lutris.override {
|
||||
extraLinkLines = let
|
||||
proton-cachyos = inputs.nix-proton-cachyos.packages.${pkgs.system}.proton-cachyos;
|
||||
in ''ln -sf ${proton-cachyos}/share/steam $out/share'';
|
||||
extraPkgs = pkgs: [
|
||||
pkgs.gamescope
|
||||
pkgs.libnghttp2
|
||||
pkgs.winetricks
|
||||
pkgs.jansson
|
||||
pkgs.samba
|
||||
pkgs.gvfs
|
||||
pkgs.mangohud
|
||||
pkgs.vkbasalt
|
||||
pkgs.umu-launcher
|
||||
pkgs.xdg-desktop-portal
|
||||
inputs.nix-proton-cachyos.packages.${pkgs.system}.proton-cachyos
|
||||
];
|
||||
extraLibraries = pkgs: [
|
||||
pkgs.libunwind
|
||||
pkgs.xdg-desktop-portal
|
||||
pkgs.gvfs
|
||||
pkgs.jansson
|
||||
pkgs.samba
|
||||
pkgs.xz
|
||||
inputs.nix-proton-cachyos.packages.x86_64-linux.proton-cachyos
|
||||
];
|
||||
})
|
||||
|
||||
vkbasalt
|
||||
mangohud
|
||||
umu-launcher
|
||||
|
||||
# support 32-bit only
|
||||
wine
|
||||
|
|
|
|||
3
nixos/profiles/gaming/ntsync.nix
Normal file
3
nixos/profiles/gaming/ntsync.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
programs.wine.ntsync.enable = true;
|
||||
}
|
||||
5
nixos/profiles/gaming/sound.nix
Normal file
5
nixos/profiles/gaming/sound.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
services.pipewire.lowLatency = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +1,10 @@
|
|||
_: {
|
||||
{ pkgs, inputs, ... }: {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
platformOptimizations.enable = true;
|
||||
extraCompatPackages = [
|
||||
inputs.nix-proton-cachyos.packages.${pkgs.system}.proton-cachyos
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
45
nixos/profiles/gaming/vr.nix
Normal file
45
nixos/profiles/gaming/vr.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{pkgs, ... }: {
|
||||
programs.envision = {
|
||||
enable = true;
|
||||
openFirewall = true; # This is set true by default
|
||||
};
|
||||
|
||||
/*services.wivrn = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
package = pkgs.wivrn.override { cudaSupport = true; };
|
||||
defaultRuntime = true;
|
||||
config = {
|
||||
enable = true;
|
||||
json = {
|
||||
scale = [ 0.5 0.5 ];
|
||||
bitrate = 300*1000;
|
||||
encoders = [
|
||||
{
|
||||
encoder = "nvenc";
|
||||
codec = "h265";
|
||||
width = 1.0;
|
||||
height = 1.0;
|
||||
offset_x = 0.0;
|
||||
offset_y = 0.0;
|
||||
}
|
||||
];
|
||||
tcp_only = false;
|
||||
#application = [
|
||||
# "${pkgs.wlx-overlay-s}/bin/wlx-overlay-s"
|
||||
#];
|
||||
};
|
||||
};
|
||||
};*/
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wlx-overlay-s
|
||||
monado-vulkan-layers
|
||||
bs-manager
|
||||
];
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 9757 ];
|
||||
allowedUDPPorts = [ 9757 ];
|
||||
};
|
||||
}
|
||||
|
|
@ -11,6 +11,7 @@
|
|||
super-slicer-beta
|
||||
nvidia-vaapi-driver
|
||||
nv-codec-headers-12
|
||||
inputs.push2talk.defaultPackage.${pkgs.system}
|
||||
];
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
|
|
@ -20,6 +21,11 @@
|
|||
};
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
obs-vaapi
|
||||
obs-tuna
|
||||
obs-source-clone
|
||||
obs-pipewire-audio-capture
|
||||
input-overlay
|
||||
obs-vkcapture
|
||||
];
|
||||
};
|
||||
services.udev.packages = [
|
||||
|
|
|
|||
|
|
@ -1,16 +1,20 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [pulsemixer];
|
||||
environment.systemPackages = with pkgs; [pulsemixer pwvucontrol];
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
|
||||
security.rtkit.enable = true;
|
||||
|
||||
services.pipewire.extraConfig.pipewire-pulse."92-subpar-latency" = {
|
||||
pulse.properties = {
|
||||
pulse.min.req = "1024/48000";
|
||||
pulse.default.req = "1024/48000";
|
||||
pulse.min.quantum = "1024/48000";
|
||||
};
|
||||
services.pipewire.extraConfig.pipewire-pulse."91-discord-latency" = {
|
||||
pulse.rules = [
|
||||
{
|
||||
matches = [ { "application.process.binary" = "Discord"; } ];
|
||||
actions = {
|
||||
update-props = {
|
||||
"pulse.min.quantum" = "1024/48000";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue