Giter Site home page Giter Site logo

ryzerproxy.github.io's Introduction

Getting started with Nix

You've just created a new Nix repl. There's not much here yet but with a little work you can use it as the starting point for ANYTHING.

To get started there are 2 config files that you can use to customize the environment. To show them click the 3 dots menu button in the file tree and then click "Show config files".

  • replit.nix - Configures the nix environment

This file should look something like the example below. The deps array specifies which Nix packages you would like to be available in your environment. You can search for Nix packages here: https://search.nixos.org/packages

{ pkgs }: {
    deps = [
        pkgs.cowsay
        pkgs.zig
    ];
}
  • .replit - Configures the run command

The run command in this file should look something like this. You can use any binary made available by your replit.nix file in this run command.

run = "cowsay Welcome to nix on Replit!"

Once both those files are configured and you add files for your language, you can run you repl like normal, with the run button.

Both the Console and Shell will pick up changes made to your replit.nix file. However, once you open the Shell tab, the environment will not update until you run exit. This will close out the existing shell process and start a new one that includes any changes that you made to your replit.nix file.

Learn More About Nix

If you'd like to learn more about Nix, here are some great resources:

ryzerproxy.github.io's People

Contributors

ryzerproxy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.