From 3367a73a8ab6b426db3825d860e568c0d3e1fb91 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Fri, 19 Jul 2024 22:32:25 -0700 Subject: [PATCH] Update Nixpkgs, Removed Auto Power Reg, Added Gnome Performance Fix --- configuration.nix | 25 ++++++++++++++++++++++++- flake.lock | 6 +++--- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index b2a22c0..28e11d9 100755 --- a/configuration.nix +++ b/configuration.nix @@ -88,7 +88,6 @@ in systemd.enableEmergencyMode = false; # Enable sound with pipewire. - sound.enable = true; hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { @@ -125,6 +124,29 @@ in systemd.services."getty@tty1".enable = true; systemd.services."autovt@tty1".enable = true; + + # Fix the GNOME Desktop Environment Performance + + nixpkgs.config.allowAliases = false; + + nixpkgs.overlays = [ + # GNOME 46: triple-buffering-v4-46 + (final: prev: { + gnome = prev.gnome.overrideScope (gnomeFinal: gnomePrev: { + mutter = gnomePrev.mutter.overrideAttrs (old: { + src = pkgs.fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "vanvugt"; + repo = "mutter"; + rev = "triple-buffering-v4-46"; + hash = "sha256-nz1Enw1NjxLEF3JUG0qknJgf4328W/VvdMjJmoOEMYs="; + }; + }); + }); + }) + ]; + + # Allow Flatpak services.flatpak.enable = true; @@ -326,6 +348,7 @@ in ####### KEEP AWAKE for DISPLAY and HEADLESS ####### services.xserver.displayManager.gdm.autoSuspend = false; + services.power-profiles-daemon.enable = false; ####### BACKUP TO INTERNAL DRIVE ####### diff --git a/flake.lock b/flake.lock index fe80a63..950a132 100755 --- a/flake.lock +++ b/flake.lock @@ -157,11 +157,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1720768451, - "narHash": "sha256-EYekUHJE2gxeo2pM/zM9Wlqw1Uw2XTJXOSAO79ksc4Y=", + "lastModified": 1721379653, + "narHash": "sha256-8MUgifkJ7lkZs3u99UDZMB4kbOxvMEXQZ31FO3SopZ0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9", + "rev": "1d9c2c9b3e71b9ee663d11c5d298727dace8d374", "type": "github" }, "original": {