diff options
author | Mustafa Çalışkan <muscaln@protonmail.com> | 2022-05-27 22:34:44 +0300 |
---|---|---|
committer | Mustafa Çalışkan <muscaln@protonmail.com> | 2022-05-27 22:56:42 +0300 |
commit | 0ffe0b6894ef3621ad0b345b5996509c4c95d919 (patch) | |
tree | 21e9081c66cf3a2ca231c93f4738d15989089fb4 /nix/NIX.md | |
parent | 338156500bfca02427d0bd8c9c6402fc1d5b1122 (diff) | |
download | PrismLauncher-0ffe0b6894ef3621ad0b345b5996509c4c95d919.tar.gz PrismLauncher-0ffe0b6894ef3621ad0b345b5996509c4c95d919.tar.bz2 PrismLauncher-0ffe0b6894ef3621ad0b345b5996509c4c95d919.zip |
nix: move files to nix/
Diffstat (limited to 'nix/NIX.md')
-rw-r--r-- | nix/NIX.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nix/NIX.md b/nix/NIX.md new file mode 100644 index 00000000..1ceba9a3 --- /dev/null +++ b/nix/NIX.md @@ -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 ]; +``` |