MORE
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
#Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, master, lib, pkgs-master, inputs, ... }:
|
||||
|
||||
@@ -46,9 +43,13 @@ boot = {
|
||||
# Enable "Silent Boot"
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest;
|
||||
kernelModules = [ "amdgpu" ];
|
||||
kernelPatches = [
|
||||
/*{
|
||||
name = "frl";
|
||||
patch = ../../patches/0001-amdgpu-frl.patch;
|
||||
}*/
|
||||
/*{
|
||||
name = "dsc";
|
||||
patch = ../../patches/bigscreen_1.patch;
|
||||
@@ -152,11 +153,15 @@ boot = {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
initial_session = {
|
||||
hyprland_session = {
|
||||
command = "dbus-launch ${pkgs.hyprland}/bin/start-hyprland";
|
||||
user = "joshuaelm";
|
||||
};
|
||||
default_session = initial_session;
|
||||
gamescope_session = {
|
||||
command = "${lib.getExe pkgs.gamescope} -W 3840 -H 2160 -r 120 --hdr-enabled --adaptive-sync --rt --steam -- steam -gamepadui -steamdeck -steamos3 > /dev/null 2>&1";
|
||||
user = "joshuaelm";
|
||||
};
|
||||
default_session = hyprland_session;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -208,23 +213,6 @@ boot = {
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
extraConfig.pipewire."92-low-latency" = {
|
||||
"context.properties" = {
|
||||
"default.clock.rate" = 48000;
|
||||
"default.clock.quantum" = 32;
|
||||
"default.clock.min-quantum" = 32;
|
||||
"default.clock.max-quantum" = 32;
|
||||
};
|
||||
};
|
||||
};
|
||||
services.pulseaudio.configFile = pkgs.runCommand "default.pa" {} ''
|
||||
sed 's/module-udev-detect$/module-udev-detect tsched=0/' \
|
||||
${pkgs.pulseaudio}/etc/pulse/default.pa > $out
|
||||
'';
|
||||
environment.etc."wireplumber/main.lua.d/90-suspend-timeout.lua" = {
|
||||
text = ''
|
||||
session.suspend-timeout-seconds = 0
|
||||
'';
|
||||
};
|
||||
|
||||
services.pulseaudio.extraConfig = ''
|
||||
@@ -336,7 +324,7 @@ services.pulseaudio.extraConfig = ''
|
||||
ryubing
|
||||
gomatrix
|
||||
python3
|
||||
inputs.naviterm.packages.${pkgs.system}.default
|
||||
#inputs.naviterm.packages.${pkgs.system}.default
|
||||
pavucontrol
|
||||
sbctl
|
||||
boxflat
|
||||
@@ -345,7 +333,7 @@ services.pulseaudio.extraConfig = ''
|
||||
corectrl
|
||||
wiremix
|
||||
steamtinkerlaunch
|
||||
wineWowPackages.wayland
|
||||
wineWow64Packages.wayland
|
||||
blueman
|
||||
lapce
|
||||
prismlauncher
|
||||
@@ -368,14 +356,19 @@ services.pulseaudio.extraConfig = ''
|
||||
|
||||
services.xserver.enableTCP = true;
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
autoStart = false;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
|
||||
};
|
||||
# Enable Steam
|
||||
nixpkgs.overlays = [ inputs.millennium.overlays.default ];
|
||||
nixpkgs.overlays = [
|
||||
inputs.millennium.overlays.default
|
||||
inputs.nix-cachyos-kernel.overlays.pinned
|
||||
];
|
||||
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
@@ -402,12 +395,12 @@ services.pulseaudio.extraConfig = ''
|
||||
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
steam = pkgs.steam.override {
|
||||
extraLibraries = pkgs: [ pkgs.xorg.libxcb ];
|
||||
extraLibraries = pkgs: [ pkgs.libxcb ];
|
||||
extraPkgs = pkgs: with pkgs; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
xorg.libXScrnSaver
|
||||
libXcursor
|
||||
libXi
|
||||
libXinerama
|
||||
libXScrnSaver
|
||||
libpng
|
||||
libpulseaudio
|
||||
libvorbis
|
||||
@@ -420,7 +413,7 @@ services.pulseaudio.extraConfig = ''
|
||||
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
capSysNice = false;
|
||||
capSysNice = true;
|
||||
};
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user