snowflake #21

Merged
notohh merged 30 commits from snowflake into master 2023-11-24 04:25:57 -05:00
Showing only changes of commit 1c7aba3cc1 - Show all commits

View file

@ -1,9 +1,12 @@
{ {
inputs,
config, config,
pkgs, pkgs,
... ...
}: { }: {
imports = [ imports = [
inputs.nix-gaming.nixosModules.steamCompat
inputs.nix-gaming.nixosModules.pipewireLowLatency
./hardware-configuration.nix ./hardware-configuration.nix
./services ./services
../../home/wayland/hyprland/wayland.nix ../../home/wayland/hyprland/wayland.nix
@ -52,17 +55,6 @@
}; };
}; };
environment.etc = {
"pipewire/pipewire.conf.d/92-low-latency.conf".text = ''
context.properties = {
default.clock.rate = 48000
default.clock.quantum = 1024
default.clock.min-quantum = 16
default.clock.max-quantum = 2048
}
'';
};
services.pcscd.enable = true; services.pcscd.enable = true;
services.davfs2.enable = true; services.davfs2.enable = true;
@ -75,10 +67,18 @@
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
wireplumber.enable = true; wireplumber.enable = true;
lowLatency = {
enable = true;
quantum = 64;
rate = 48000;
};
}; };
programs.steam = { programs.steam = {
enable = true; enable = true;
extraCompatPackages = [
inputs.nix-gaming.packages.${pkgs.system}.proton-ge
];
}; };
security.polkit.enable = true; security.polkit.enable = true;
@ -92,7 +92,7 @@
nvidia = { nvidia = {
powerManagement.enable = true; powerManagement.enable = true;
modesetting.enable = true; modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.production;
}; };
opengl = { opengl = {
enable = true; enable = true;
@ -115,5 +115,6 @@
pinentry-gtk2 pinentry-gtk2
jdk17 jdk17
comma comma
inputs.matugen.packages.${system}.default
]; ];
} }