nix-files/integrations/nur/default.nix

27 lines
1003 B
Nix
Raw Normal View History

# Nix User Repository (NUR)
# - <https://github.com/nix-community/NUR>
#
# this file is not reachable from the top-level of my nixos configs (i.e. toplevel flake.nix)
# nor is it intended for anyone who wants to reference my config directly
# (consider the toplevel flake.nix outputs instead).
#
# rather, this is the entrypoint through which NUR finds my packages, modules, overlays.
# it's reachable only from those using this repo via NUR.
2023-05-03 00:56:23 +00:00
#
# to manually query available packages, modules, etc, true:
# - nix eval --impure --expr 'builtins.attrNames (import ./. {})'
2023-05-03 00:56:23 +00:00
{ pkgs ? import <nixpkgs> {} }:
let
sanePkgs = import ../../pkgs/additional pkgs;
in
({
2023-05-03 00:56:23 +00:00
# contains both packages not in nixpkgs, and patched versions of those in nixpkgs
overlays.pkgs = import ../../overlays/pkgs.nix;
2023-05-03 00:56:23 +00:00
# contains only my packages which aren't in nixpkgs
pkgs = sanePkgs;
2023-05-03 00:56:23 +00:00
modules = import ../../modules { inherit (pkgs) lib; };
lib = import ../../modules/lib { inherit (pkgs) lib; };
} // sanePkgs)