mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
Add documentation for nix package
This commit is contained in:
parent
83fcebe2a9
commit
0ec2170b5e
1 changed files with 26 additions and 0 deletions
26
packages/nix/NIX.md
Normal file
26
packages/nix/NIX.md
Normal file
|
|
@ -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 `<polymc>` to imports in your `configuration.nix`
|
||||
|
||||
```nix
|
||||
imports = [
|
||||
"<polymc>/packages/nix/overlay.nix
|
||||
];
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue