Something went wrong. Try again.
[Mirror] NUR repo for my Nix packages, and some modules. github.com/adam01110/nur
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172# This file describes your repository contents.# It should return a set of nix derivations# and optionally the special attributes `lib`, `modules` and `overlays`.# It should NOT import <nixpkgs>. Instead, you should take pkgs as an argument.# Having pkgs default to <nixpkgs> is fine though, and it lets you use short# commands such as:# nix-build -A mypackage{pkgs ? import <nixpkgs> {}, ...}: let inherit (builtins) isAttrs;
localPkgs = if pkgs ? fetchFromTangled then pkgs else pkgs.extend (final: _previous: { fetchFromTangled = final.callPackage ./lib/fetch-from-tangled.nix {}; });
inherit (localPkgs) # keep-sorted start callPackage lib # keep-sorted end ; inherit (lib) # keep-sorted start filesystem filterAttrs isDerivation mapAttrs recurseIntoAttrs # keep-sorted end ;
normalizePackage = v: if isDerivation v then v else if isAttrs v && v ? default && isDerivation v.default then v.default else v;
recurseCallPackage = path: recurseIntoAttrs (callPackage path {});
discoveredPackages = filesystem.packagesFromDirectoryRecursive { inherit (localPkgs) callPackage newScope; directory = ./pkgs; };
allPackages = filterAttrs (_: isDerivation) (mapAttrs (_: normalizePackage) discoveredPackages);in { # The `lib`, `modules`, and `overlays` names are special # keep-sorted start hmModules = import ./hm-modules; # Home Manager modules. lib = import ./lib {inherit pkgs;}; # functions modules = import ./modules; # NixOS modules overlays = import ./overlays; # nixpkgs overlays # keep-sorted end
# keep-sorted start bibata = recurseCallPackage ./pkgs/bibata; ghosttyShaders = recurseCallPackage ./pkgs/ghostty-shaders; gotifyPlugins = recurseIntoAttrs (callPackage ./pkgs/gotify-server/plugins {inherit (allPackages) gotify-server;}); hyprlandPlugins = recurseCallPackage ./pkgs/hyprland/plugins; spicetifyExtensions = recurseCallPackage ./pkgs/spicetify/extensions; yaziPlugins = recurseCallPackage ./pkgs/yazi-plugins; # keep-sorted end } // allPackages