pollymc/nix/NIX.md
txtsd 19ecb1701e
chore(markdown): MD031 Fenced code blocks should be surrounded by blank lines
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06 13:00:56 +05:30

667 B

How to import

To import with flakes use

{
  inputs = {
    polymc.url = "github:PolyMC/PolyMC";
  };

...

  nixpkgs.overlays = [ inputs.polymc.overlay ]; ## Within configuration.nix
  environment.systemPackages = with pkgs; [ polymc ]; ##
}

To import without flakes use channels:

nix-channel --add https://github.com/PolyMC/PolyMC/archive/master.tar.gz polymc
nix-channel --update polymc
nix-env -iA polymc

or alternatively you can use

{
  nixpkgs.overlays = [
    (import (builtins.fetchTarball "https://github.com/PolyMC/PolyMC/archive/develop.tar.gz")).overlay
  ];

  environment.systemPackages = with pkgs; [ polymc ];
}