overlays setup

This commit is contained in:
Danilo Reyes 2024-04-19 12:44:04 -06:00
parent 99cf03a01e
commit 14676a34dc
2 changed files with 22 additions and 1 deletions

View File

@ -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;

18
overlays.nix Normal file
View File

@ -0,0 +1,18 @@
final: prev:
let overlays = (import <nixpkgs/nixos> { }).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 = ""; };
});
}