32 lines
635 B
Markdown
Raw Permalink Normal View History

2022-01-08 09:27:47 -06:00
# How to import
To import with flakes use
```nix
inputs = {
polymc.url = "github:PolyMC/PolyMC";
};
...
2022-01-13 15:43:29 +02:00
nixpkgs.overlays = [ inputs.polymc.overlay ]; ## Within configuration.nix
2022-01-09 08:17:52 -06:00
environment.systemPackages = with pkgs; [ polymc ]; ##
2022-01-08 09:27:47 -06:00
```
To import without flakes use channels:
```
nix-channel --add https://github.com/PolyMC/PolyMC/archive/master.tar.gz polymc
nix-channel --update polymc
2022-01-09 08:15:47 -06:00
nix-env -iA polymc
2022-01-08 09:27:47 -06:00
```
2022-01-09 08:15:47 -06:00
or alternatively you can use
```
nixpkgs.overlays = [
(import (builtins.fetchTarball "https://github.com/PolyMC/PolyMC/archive/develop.tar.gz")).overlay
2022-01-09 08:17:52 -06:00
];
environment.systemPackages = with pkgs; [ polymc ];
2022-01-13 15:43:29 +02:00
```