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