feat(binto): add nix gaming with lowL pipewire plus switch to xanmod

This commit is contained in:
matt1432 2023-10-17 19:10:54 -04:00
parent b8c5d1d0c7
commit 05ab0ea83a
6 changed files with 15 additions and 2 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -11,6 +11,7 @@
../../modules/printer.nix ../../modules/printer.nix
./modules/nvidia.nix ./modules/nvidia.nix
./modules/nix-gaming.nix
]; ];
networking = { networking = {

View file

@ -2,7 +2,7 @@
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = { boot = {
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_xanmod_latest;
kernelModules = [ "kvm-amd" ]; kernelModules = [ "kvm-amd" ];
extraModulePackages = with config.boot.kernelPackages; [ extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback v4l2loopback

View file

@ -0,0 +1,7 @@
# configuration.nix
{
nix.settings = {
substituters = ["https://nix-gaming.cachix.org"];
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
};
}

View file

@ -1,4 +1,8 @@
{ ... }: { { nix-gaming, ... }: {
imports = [
nix-gaming.nixosModules.pipewireLowLatency
];
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
services.pipewire = { services.pipewire = {
@ -6,5 +10,6 @@
alsa.enable = true; alsa.enable = true;
jack.enable = true; jack.enable = true;
pulse.enable = true; pulse.enable = true;
lowLatency.enable = true;
}; };
} }