diff options
| author | nsfisis <54318333+nsfisis@users.noreply.github.com> | 2025-04-27 13:47:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-27 13:47:46 +0900 |
| commit | 771f7c72fd1f1236031751048861550c694c796c (patch) | |
| tree | f2b74712b9b3c064bbc435e14a889825e67a82d4 /overlay.nix | |
| download | nur-packages-771f7c72fd1f1236031751048861550c694c796c.tar.gz nur-packages-771f7c72fd1f1236031751048861550c694c796c.tar.zst nur-packages-771f7c72fd1f1236031751048861550c694c796c.zip | |
Initial commit
Diffstat (limited to 'overlay.nix')
| -rw-r--r-- | overlay.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/overlay.nix b/overlay.nix new file mode 100644 index 0000000..bff7396 --- /dev/null +++ b/overlay.nix @@ -0,0 +1,15 @@ +# You can use this file as a nixpkgs overlay. This is useful in the +# case where you don't want to add the whole NUR namespace to your +# configuration. + +self: super: +let + isReserved = n: n == "lib" || n == "overlays" || n == "modules"; + nameValuePair = n: v: { name = n; value = v; }; + nurAttrs = import ./default.nix { pkgs = super; }; + +in +builtins.listToAttrs + (map (n: nameValuePair n nurAttrs.${n}) + (builtins.filter (n: !isReserved n) + (builtins.attrNames nurAttrs))) |
