From 14676a34dc808d25162f7c21d30e7d1cb49b6a56 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Fri, 19 Apr 2024 12:44:04 -0600 Subject: [PATCH] overlays setup --- base.nix | 5 ++++- overlays.nix | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 overlays.nix diff --git a/base.nix b/base.nix index 6fa32c0..55708c3 100644 --- a/base.nix +++ b/base.nix @@ -1,4 +1,5 @@ -{ config, lib, pkgs, ... }: { +{ config, lib, pkgs, options, ... }: { + imports = [ ./modules/apps.nix ./modules/dev.nix ]; system = { copySystemConfiguration = true; stateVersion = "23.11"; @@ -30,6 +31,8 @@ }]; }; nix = { + nixPath = options.nix.nixPath.default + ++ [ "nixpkgs-overlays=./overlays.nix" ]; optimise.automatic = true; gc = { automatic = true; diff --git a/overlays.nix b/overlays.nix new file mode 100644 index 0000000..8cd0460 --- /dev/null +++ b/overlays.nix @@ -0,0 +1,18 @@ +final: prev: +let overlays = (import { }).config.nixpkgs.overlays; +in { + gnome = prev.gnome.overrideScope' (gnomeFinal: gnomePrev: { + mutter = gnomePrev.mutter.overrideAttrs (old: { + src = prev.pkgs.fetchgit { + url = "https://gitlab.gnome.org/vanvugt/mutter.git"; + # GNOME 45: triple-buffering-v4-45 + rev = "0b896518b2028d9c4d6ea44806d093fd33793689"; + sha256 = "sha256-mzNy5GPlB2qkI2KEAErJQzO//uo8yO0kPQUwvGDwR4w="; + }; + }); + }); + blanket = prev.sl.overrideAttrs (old: { + version = "0.7.0"; + src = prev.fetchFromGitHub { hash = ""; }; + }); +}