1
0
Fork 0

Gnome: move repo to flake input

This commit is contained in:
Aires 2024-09-19 13:40:37 -04:00
parent 526a385c09
commit de0bc659a8
3 changed files with 30 additions and 10 deletions

View file

@ -131,6 +131,25 @@
"type": "github" "type": "github"
} }
}, },
"gnome-triplebuffering": {
"flake": false,
"locked": {
"host": "gitlab.gnome.org",
"lastModified": 1722924508,
"narHash": "sha256-C2VfW3ThPEZ37YkX7ejlyumLnWa9oij333d5c4yfZxc=",
"owner": "vanvugt",
"repo": "mutter",
"rev": "29a72bfb0bdb060d91196c57dc1940e5049858ed",
"type": "gitlab"
},
"original": {
"host": "gitlab.gnome.org",
"owner": "vanvugt",
"ref": "triple-buffering-v4-46",
"repo": "mutter",
"type": "gitlab"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -340,6 +359,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"gnome-triplebuffering": "gnome-triplebuffering",
"home-manager": "home-manager", "home-manager": "home-manager",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"lix-module": "lix-module", "lix-module": "lix-module",

View file

@ -38,6 +38,13 @@
url = "git+file:./secrets"; url = "git+file:./secrets";
flake = false; flake = false;
}; };
# Repository for Gnome triple buffering patch
# For details, see https://wiki.nixos.org/wiki/GNOME#Dynamic_triple_buffering
gnome-triplebuffering = {
url = "gitlab:vanvugt/mutter/triple-buffering-v4-46?host=gitlab.gnome.org";
flake = false;
};
}; };
outputs = outputs =

View file

@ -1,5 +1,6 @@
# Enables the Gnome desktop environment. # Enables the Gnome desktop environment.
{ {
inputs,
pkgs, pkgs,
config, config,
lib, lib,
@ -103,20 +104,12 @@ in
}; };
nixpkgs.overlays = lib.mkIf cfg.experimentalFeatures.enable [ nixpkgs.overlays = lib.mkIf cfg.experimentalFeatures.enable [
# GNOME 46: triple-buffering-v4-46
# For details, see https://wiki.nixos.org/wiki/GNOME#Dynamic_triple_buffering
(final: prev: { (final: prev: {
gnome = prev.gnome.overrideScope ( gnome = prev.gnome.overrideScope (
gnomeFinal: gnomePrev: { gnomeFinal: gnomePrev: {
mutter = gnomePrev.mutter.overrideAttrs (old: { mutter = gnomePrev.mutter.overrideAttrs (old: {
src = pkgs.fetchFromGitLab { # Triple buffering
domain = "gitlab.gnome.org"; src = inputs.gnome-triplebuffering;
owner = "vanvugt";
repo = "mutter";
rev = "triple-buffering-v4-46";
hash = "sha256-C2VfW3ThPEZ37YkX7ejlyumLnWa9oij333d5c4yfZxc=";
};
# Scaling patch sourced from https://aur.archlinux.org/packages/mutter-xwayland-scaling # Scaling patch sourced from https://aur.archlinux.org/packages/mutter-xwayland-scaling
patches = [ ./patches/gnome-mutter-xwayland-scaling.patch ]; patches = [ ./patches/gnome-mutter-xwayland-scaling.patch ];
}); });