flake/overlays/nautilus.nix

22 lines
686 B
Nix
Raw Normal View History

2024-05-04 04:18:54 +00:00
{prev, ...}: {
2023-11-09 04:21:04 +00:00
gnome =
prev.gnome
// {
2024-05-04 04:18:54 +00:00
# https://aur.archlinux.org/pkgbase/nautilus-typeahead
nautilus = prev.gnome.nautilus.overrideAttrs (old: {
src = prev.fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "albertvaka";
repo = "nautilus";
rev = "f5f593bf36c41756a29d5112a10cf7ec70b8eafb";
hash = "sha256-PfkCY2gQ8jfPIgTRC9Xzxh4N3f2oB339Hym5RCbKwkw=";
};
# Enable type-ahead behavior by default
postPatch = ''
awk -i inplace '/type-ahead-search/{c++;} c==1 && /true/{sub("true", "false"); c++;} 1' data/org.gnome.nautilus.gschema.xml
'';
});
2023-11-09 04:21:04 +00:00
};
}