diff --git a/packages/nix/NIX.md b/packages/nix/NIX.md new file mode 100644 index 00000000..3013acb6 --- /dev/null +++ b/packages/nix/NIX.md @@ -0,0 +1,26 @@ +# How to import + +To import with flakes use +```nix +inputs = { + polymc.url = "github:PolyMC/PolyMC"; +}; + +... + +nixpkgs.overlays = [ inputs.polymc.overlay ]; ## Within configuration.nix +``` + +To import without flakes use channels: + +``` +sudo -i nix-channel --add https://github.com/PolyMC/PolyMC/archive/master.tar.gz polymc +sudo -i nix-channel --update polymc +``` +add `` to imports in your `configuration.nix` + +```nix +imports = [ + "/packages/nix/overlay.nix +]; +``` \ No newline at end of file