From 0ec2170b5ed8588ee8ddc60a2bdf460b7dc7bbf0 Mon Sep 17 00:00:00 2001 From: cidkidnix Date: Sat, 8 Jan 2022 09:27:47 -0600 Subject: [PATCH] Add documentation for nix package --- packages/nix/NIX.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/nix/NIX.md 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