Giter VIP home page Giter VIP logo

Comments (4)

prasmussen avatar prasmussen commented on August 22, 2024

Yeah, that would be cool.

It seems like nix-instantiate --eval main.nix can be used to output stuff to stdout.

from glot.

prasmussen avatar prasmussen commented on August 22, 2024

I added a basic version: https://glot.io/new/nix
Let me know if you had something else in mind.

from glot.

nixinator avatar nixinator commented on August 22, 2024

Cool!

Is there anyway that the networking can be enabled in the container for trusted users, so something like this will run. Obviously this makes it way more fun :-)

import (builtins.fetchTarball {
  # Descriptive name to make the store path easier to identify
  name = "nixos-unstable-2018-09-12";
  # Commit hash for nixos-unstable as of 2018-09-12
  url = "https://github.com/nixos/nixpkgs/archive/ca2ba44cab47767c8127d1c8633e2b581644eb8f.tar.gz";
  # Hash obtained using `nix-prefetch-url --unpack <url>`
  sha256 = "1jg7g6cfpw8qvma0y19kwyp549k1qyf11a5sg6hvn6awvmkny47v";
}) {}
error: unable to download 'https://github.com/nixos/nixpkgs/archive/ca2ba44cab47767c8127d1c8633e2b581644eb8f.tar.gz': Couldn't resolve host name (6)

This would allow a fully functional nix environment... :-) ...

from glot.

prasmussen avatar prasmussen commented on August 22, 2024

Is there anyway that the networking can be enabled in the container for trusted users

I'm not sure how to identify trusted users. I have considered adding paid accounts that would have networking enabled though.

from glot.

Related Issues (20)

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.