nichts/modules/system/nix/registry.nix
2024-08-16 16:03:47 +02:00

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}"
];
};
}