nix: move files to nix/

This commit is contained in:
Mustafa Çalışkan
2022-05-27 22:34:44 +03:00
parent 338156500b
commit 0ffe0b6894
4 changed files with 1 additions and 1 deletions

31
nix/NIX.md Normal file
View File

@ -0,0 +1,31 @@
# How to import
To import with flakes use
```nix
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 ];
```