22 lines
363 B
Nix
22 lines
363 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (inputs) nixpkgs;
|
|
nixpkgsPath = nixpkgs.outPath;
|
|
in {
|
|
# Big thanks to Dianimo for this!
|
|
nix = {
|
|
registry = {
|
|
nixpkgs.flake = inputs.nixpkgs;
|
|
default.flake = inputs.nixpkgs;
|
|
};
|
|
|
|
nixPath = [
|
|
"nixpkgs=${nixpkgsPath}"
|
|
"n=${nixpkgsPath}"
|
|
"default=${nixpkgsPath}"
|
|
];
|
|
};
|
|
}
|