flake.nix: create Firefox addons overlay

This commit is contained in:
Gabriel Arazas 2023-12-23 20:31:23 +08:00
parent 32d20ed2a3
commit 14af688215
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -90,18 +90,7 @@
inherit (import ./lib/extras/images.nix { inherit inputs; lib = lib'; }) mkHost mkHome mkImage listImagesWithSystems; inherit (import ./lib/extras/images.nix { inherit inputs; lib = lib'; }) mkHost mkHome mkImage listImagesWithSystems;
# The order here is important(?). # The order here is important(?).
overlays = [ overlays = lib'.attrValues self.overlays;
# My own set of Firefox addons. They're not included in the packages
# output since they'll be a pain in the ass to set up for others when
# this is also included. If I set this up to be easily included in
# others' flake, it'll have a potential conflict for NUR users
# (including myself) that also relies on rycee's NUR instance. Overall,
# it's a pain to setup so I'm not including this.
(final: prev: {
inherit (final.nur.repos.rycee.firefox-addons) buildFirefoxXpiAddon;
firefox-addons = final.callPackage ./pkgs/firefox-addons { };
})
] ++ (lib'.attrValues self.overlays);
defaultSystem = "x86_64-linux"; defaultSystem = "x86_64-linux";
@ -415,6 +404,10 @@
# In case somebody wants to use my stuff to be included in nixpkgs. # In case somebody wants to use my stuff to be included in nixpkgs.
overlays = import ./overlays // { overlays = import ./overlays // {
default = final: prev: import ./pkgs { pkgs = prev; }; default = final: prev: import ./pkgs { pkgs = prev; };
firefox-addons = final: prev: {
inherit (final.nur.repos.rycee.firefox-addons) buildFirefoxXpiAddon;
firefox-addons = final.callPackage ./pkgs/firefox-addons { };
};
}; };
# My custom packages, available in here as well. Though, I mainly support # My custom packages, available in here as well. Though, I mainly support