-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gnome): Enable dynamic triple buffering
- Loading branch information
1 parent
330b16f
commit 6c5753d
Showing
1 changed file
with
52 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,57 @@ | ||
{ pkgs, ... }: { | ||
config = { | ||
services = { | ||
displayManager.defaultSession = "gnome-xorg"; | ||
xserver = { | ||
enable = true; | ||
videoDrivers = [ "nvidia" ]; | ||
desktopManager.gnome.enable = true; | ||
displayManager = { gdm.enable = true; }; | ||
}; | ||
}; | ||
environment = { | ||
# don't install GNOME crap like Contacts, Photos, etc. | ||
gnome.excludePackages = with pkgs; [ | ||
gnome-photos | ||
gnome-tour | ||
cheese # webcam tool | ||
epiphany # web browser | ||
geary # email reader | ||
yelp # Help view | ||
seahorse # password/ssh manager, I use 1Password SSH | ||
gnome-calendar | ||
gnome-music | ||
gnome-characters | ||
tali # poker game | ||
iagno # go game | ||
hitori # sudoku game | ||
atomix # puzzle game | ||
gnome-contacts | ||
gnome-initial-setup | ||
]; | ||
}; | ||
|
||
programs.kdeconnect = { | ||
nixpkgs.overlays = [ | ||
# GNOME 46: triple-buffering-v4-46 | ||
# See: | ||
# - https://nixos.wiki/wiki/GNOME#Dynamic_triple_buffering | ||
# - https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441 | ||
(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-C2VfW3ThPEZ37YkX7ejlyumLnWa9oij333d5c4yfZxc="; | ||
}; | ||
}); | ||
}); | ||
}) | ||
]; | ||
services = { | ||
displayManager.defaultSession = "gnome-xorg"; | ||
xserver = { | ||
enable = true; | ||
package = pkgs.gnomeExtensions.gsconnect; | ||
videoDrivers = [ "nvidia" ]; | ||
desktopManager.gnome.enable = true; | ||
displayManager = { gdm.enable = true; }; | ||
}; | ||
programs.dconf.enable = true; | ||
}; | ||
environment = { | ||
# don't install GNOME crap like Contacts, Photos, etc. | ||
gnome.excludePackages = with pkgs; [ | ||
gnome-photos | ||
gnome-tour | ||
cheese # webcam tool | ||
epiphany # web browser | ||
geary # email reader | ||
yelp # Help view | ||
seahorse # password/ssh manager, I use 1Password SSH | ||
gnome-calendar | ||
gnome-music | ||
gnome-characters | ||
tali # poker game | ||
iagno # go game | ||
hitori # sudoku game | ||
atomix # puzzle game | ||
gnome-contacts | ||
gnome-initial-setup | ||
]; | ||
}; | ||
|
||
programs.kdeconnect = { | ||
enable = true; | ||
package = pkgs.gnomeExtensions.gsconnect; | ||
}; | ||
programs.dconf.enable = true; | ||
} |