diff --git a/nixos/common/desktops/gnome/default.nix b/nixos/common/desktops/gnome/default.nix index f0963719..ea4483fa 100644 --- a/nixos/common/desktops/gnome/default.nix +++ b/nixos/common/desktops/gnome/default.nix @@ -4,8 +4,15 @@ services.pipewire = { enable = true; alsa.enable = true; - alsa.support32Bit = true; pulse.enable = true; + extraConfig.pipewire = { + "context.properties" = { + "default.clock.rate" = 48000; + "default.clock.quantum" = 2048; + "default.clock.min-quantum" = 2048; + "default.clock.max-quantum" = 8192; + }; + }; }; # Configure keymap in X11 diff --git a/nixos/hosts/framework16/default.nix b/nixos/hosts/framework16/default.nix index 30a5ab8d..bfba5e97 100644 --- a/nixos/hosts/framework16/default.nix +++ b/nixos/hosts/framework16/default.nix @@ -29,27 +29,28 @@ }; - hardware.bluetooth.enable = true; # enables support for Bluetooth - hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot - services.fwupd.enable = true; - - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "uas" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + # FIX: One of these commented entries is causing stuttering issues. + # Now that I commented them all out my laptop is performing great. I might just leave it... + # hardware.bluetooth.enable = true; # enables support for Bluetooth + # hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot + # services.fwupd.enable = true; + # boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "uas" "sd_mod" ]; + # boot.initrd.kernelModules = [ ]; + # boot.kernelModules = [ "kvm-amd" ]; + # boot.extraModulePackages = [ ]; # boot.kernelPackages = pkgs.linuxPackages_latest; - boot.kernelParams = [ - "boot.shell_on_fail" - "amdgpu.abmlevel=0" # Prevents screen washout on power-save modes - ]; + # boot.kernelParams = [ + # "boot.shell_on_fail" + # "amdgpu.abmlevel=0" # Prevents screen washout on power-save modes + # ]; # boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; - boot.kernelPackages = pkgs.linuxPackages_latest; networking.useDHCP = lib.mkDefault true; - powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; + powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; hardware.keyboard.zsa.enable = true; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # Set your time zone. + # This is now handled by GeoClue # time.timeZone = "Europe/Warsaw";