nixos-config/configs/flake-parts/packages.nix
Gabriel Arazas e4ad727c56
flake.nix: configure output with flake-parts
I've seen how Nixvim project is managed and flake-parts is pretty good from
a glance and indeed it is.
2024-01-15 22:06:12 +08:00

20 lines
772 B
Nix

# All of the things concerning the custom packages from this flake are put over
# here.
{ inputs, ... }: {
# In case somebody wants to use my stuff to be included in nixpkgs.
flake.overlays = import ../../overlays // {
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 { };
};
};
perSystem = { system, pkgs, ... }: {
# My custom packages, available in here as well. Though, I mainly support
# "x86_64-linux". I just want to try out supporting other systems.
packages =
inputs.flake-utils.lib.flattenTree (import ../../pkgs { inherit pkgs; });
};
}