PrismLauncher/packages/nix/NIX.md

26 lines
478 B
Markdown
Raw Normal View History

2022-01-08 15:27:47 +00:00
# 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 `<polymc>` to imports in your `configuration.nix`
```nix
imports = [
2022-01-08 15:28:37 +00:00
"<polymc>/packages/nix/overlay.nix"
2022-01-08 15:27:47 +00:00
];
```